bareudp: Added attribute to enable & disable rx metadata collection

Metadata need not be collected in receive if the packet from bareudp
device is not targeted to openvswitch.

Signed-off-by: Martin <martin.varghese@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Martin
2020-06-28 23:18:23 +05:30
committed by David S. Miller
parent 8930449628
commit fe80536acf
4 changed files with 23 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ struct bareudp_conf {
__be16 port;
u16 sport_min;
bool multi_proto_mode;
bool rx_collect_metadata;
};
struct net_device *bareudp_dev_create(struct net *net, const char *name,