]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sfc: insert catch-all filters for encapsulated traffic
authorEdward Cree <ecree@solarflare.com>
Fri, 27 Jan 2017 15:02:52 +0000 (15:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2017 16:59:31 +0000 (11:59 -0500)
commit9b41080125176841ece49b661aa133afffe99381
treef4efdf0f07abaa69f49d6e1d2d0390fdbd89b999
parent34e7aefb2a15f3180635e5730f01f5ce4a0734ec
sfc: insert catch-all filters for encapsulated traffic

8000 series adapters support filtering VXLAN, NVGRE and GENEVE traffic
 based on inner fields, and when the NIC recognises such traffic, it
 does not match unencapsulated traffic filters any more.  So add catch-
 all filters for encapsulated traffic on supporting platforms.
Although recognition of VXLAN and GENEVE is based on UDP ports, and thus
 will not occur until the driver (on the primary PF) notifies the
 firmware of UDP ports to use, NVGRE will always be recognised, hence
 without this patch 8000 series adapters will drop all NVGRE traffic.

Partly based on patches by Jon Cooper <jcooper@solarflare.com>.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/filter.h