]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: fixup ipv6/ipv4 route lookup for neigh events
authorLouis Peens <louis.peens@corigine.com>
Thu, 5 May 2022 05:43:43 +0000 (14:43 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 May 2022 10:21:34 +0000 (11:21 +0100)
commitf445322bcb6d25af5ab67a74909c9f7955b4534d
treeea139ca2a67058b7037a79ebdcdd811ca070a93f
parentf3b6731f9f40648f7e727f154faf620eeb582a99
nfp: flower: fixup ipv6/ipv4 route lookup for neigh events

When a callback is received to invalidate a neighbour entry
there is no need to try and populate any other flow information.
Only the flowX->daddr information is needed as lookup key to delete
an entry from the NFP neighbour table. Fix this by only doing the
lookup if the callback is for a new entry.

As part of this cleanup remove the setting of flow6.flowi6_proto, as
this is not needed either, it looks to be a possible leftover from a
previous implementation.

Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c