diff options
| author | David S. Miller <davem@davemloft.net> | 2017-04-20 22:32:32 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-04-20 22:32:32 +0300 |
| commit | d02e93d6471c44cc80e407f2c9791bc00fed2e91 (patch) | |
| tree | a90ad882fecf7f6ee9f092dda4d6b235852ee021 /include | |
| parent | fada43ccc84e225fe8d3804878a4028def7f85a5 (diff) | |
| parent | 9d41accc1e917d071497d749e9686ba6db91517e (diff) | |
| download | linux-d02e93d6471c44cc80e407f2c9791bc00fed2e91.tar.xz | |
Merge branch 'mlxsw-flow-based-forwarding-OVS'
Jiri Pirko says:
====================
mlxsw: Allow flow based forwarding in OVS
This patchset does some fixes so the HW is setup correctly to do
flow-based (ACL based) forwarding for OVS-enslaved port.
The first patch is just trivial fix spotted on the way.
Patches 2-4 take care of proper FID setup which HW needs in order to
for ACL based forwarding.
The 7th patch (with dependency of patch 5 and 6) takes care of proper setup
of ports that are enslaved in OVS.
The last patch implements new FID miss trap that is used to push
packets belonging to unknown flows to kernel and userspace.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netdevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b0aa089ce67f..0f3c38ce5417 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -4171,6 +4171,11 @@ static inline bool netif_is_ovs_master(const struct net_device *dev) return dev->priv_flags & IFF_OPENVSWITCH; } +static inline bool netif_is_ovs_port(const struct net_device *dev) +{ + return dev->priv_flags & IFF_OVS_DATAPATH; +} + static inline bool netif_is_team_master(const struct net_device *dev) { return dev->priv_flags & IFF_TEAM; |
