]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: remove dead code paths
authorJohn Hurley <john.hurley@netronome.com>
Sat, 9 Dec 2017 03:37:02 +0000 (19:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 17:07:57 +0000 (12:07 -0500)
commita3b78c707f8934f277d9b353da731d47ee548ddd
tree624c66626655ae67e9640c934a85e49ce038c974
parentdac9bb16fd2869cfd8300dbe2f0359b13481a31e
nfp: flower: remove dead code paths

Port matching is selected by default on every rule so remove check for it
and delete 'else' side of the statement. Remove nfp_flower_meta_one as now
it will not feature in the code. Rename nfp_flower_meta_two given that one
has been removed.

'Additional metadata' if statement can never be true so remove it as well.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/cmsg.h
drivers/net/ethernet/netronome/nfp/flower/match.c
drivers/net/ethernet/netronome/nfp/flower/offload.c