mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
net: flow_offload: add support for ARP frame matching
This adds a new flow_rule_match_arp function that allows drivers to be able to dissect ARP frames. Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2fd450cd83
commit
70ea86a0df
@@ -32,6 +32,10 @@ struct flow_match_vlan {
|
|||||||
struct flow_dissector_key_vlan *key, *mask;
|
struct flow_dissector_key_vlan *key, *mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct flow_match_arp {
|
||||||
|
struct flow_dissector_key_arp *key, *mask;
|
||||||
|
};
|
||||||
|
|
||||||
struct flow_match_ipv4_addrs {
|
struct flow_match_ipv4_addrs {
|
||||||
struct flow_dissector_key_ipv4_addrs *key, *mask;
|
struct flow_dissector_key_ipv4_addrs *key, *mask;
|
||||||
};
|
};
|
||||||
@@ -98,6 +102,8 @@ void flow_rule_match_vlan(const struct flow_rule *rule,
|
|||||||
struct flow_match_vlan *out);
|
struct flow_match_vlan *out);
|
||||||
void flow_rule_match_cvlan(const struct flow_rule *rule,
|
void flow_rule_match_cvlan(const struct flow_rule *rule,
|
||||||
struct flow_match_vlan *out);
|
struct flow_match_vlan *out);
|
||||||
|
void flow_rule_match_arp(const struct flow_rule *rule,
|
||||||
|
struct flow_match_arp *out);
|
||||||
void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
|
void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
|
||||||
struct flow_match_ipv4_addrs *out);
|
struct flow_match_ipv4_addrs *out);
|
||||||
void flow_rule_match_ipv6_addrs(const struct flow_rule *rule,
|
void flow_rule_match_ipv6_addrs(const struct flow_rule *rule,
|
||||||
|
@@ -97,6 +97,13 @@ void flow_rule_match_cvlan(const struct flow_rule *rule,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(flow_rule_match_cvlan);
|
EXPORT_SYMBOL(flow_rule_match_cvlan);
|
||||||
|
|
||||||
|
void flow_rule_match_arp(const struct flow_rule *rule,
|
||||||
|
struct flow_match_arp *out)
|
||||||
|
{
|
||||||
|
FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ARP, out);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(flow_rule_match_arp);
|
||||||
|
|
||||||
void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
|
void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
|
||||||
struct flow_match_ipv4_addrs *out)
|
struct flow_match_ipv4_addrs *out)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user