]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: remove unused tun_mask variable
authorJohn Hurley <john.hurley@netronome.com>
Tue, 19 Dec 2017 16:58:26 +0000 (17:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 19:52:12 +0000 (14:52 -0500)
commit62d282b4d2b67822369c4fe4e43d08a447e3e6a4
tree401dc0837dcdea7b48043bbf40c9cfa60b553124
parenta4afbf588f58745793b98914a3719ae9f5780cea
nfp: flower: remove unused tun_mask variable

The tunnel dest IP is required for separate offload to the NFP. It is
already verified that a dest IP must be present and must be an exact
match in the flower rule. Therefore, we can just extract the IP from the
generated offload rule and remove the unused mask variable. The function
is then no longer required to return the IP separately.

Because tun_dst is localised to tunnel matches, move the declaration to
the tunnel if branch.

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