nfp: flower: do not assume mac/mpls matches
authorJohn Hurley <john.hurley@netronome.com>
Sat, 9 Dec 2017 03:37:01 +0000 (19:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 17:07:47 +0000 (12:07 -0500)
commitde7d9549845507152e7097b194449dda1dbc9c4a
tree78422cf160f46bb7e6c18b384d5b75769eeee116
parent24fd3190817e96b2a57531986bfb6e951df3ee96
nfp: flower: do not assume mac/mpls matches

Remove the matching of mac/mpls as a default selection. These are not
necessarily set by a TC rule (unlike the port). Previously a mac/mpls
field would exist in every match and be masked out if not used. This patch
has no impact on functionality but removes unnessary memory assignment in
the match cmsg.

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/offload.c