]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: enabled offloading of Team LAG
authorJohn Hurley <john.hurley@netronome.com>
Sat, 30 Jun 2018 00:04:42 +0000 (17:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 12:31:56 +0000 (21:31 +0900)
commit881ed5ac14f428b94ca2bd7c1db5f27af4230227
tree1facade95024f19791591179daaecf22076dfe6b
parent5823fc5dd8ec99bc7d64e231fde740ce57b2f68e
nfp: flower: enabled offloading of Team LAG

Currently the NFP fw only supports L3/L4 hashing so rejects the offload of
filters that output to LAG ports implementing other hash algorithms. Team,
however, uses a BPF function for the hash that is not defined. To support
Team offload, accept hashes that are defined as 'unknown' (only Team
defines such hash types). In this case, use the NFP default of L3/L4
hashing for egress port selection.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/lag_conf.c