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)
commita427673e1f9454a68bce3afadcde0c7acede4575
tree624c66626655ae67e9640c934a85e49ce038c974
parentde7d9549845507152e7097b194449dda1dbc9c4a
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