]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: configure tunnel neighbour on cmsg rx
authorTianyu Yuan <tianyu.yuan@corigine.com>
Thu, 14 Jul 2022 08:19:15 +0000 (10:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jul 2022 17:12:56 +0000 (10:12 -0700)
commit876c04b3fb65693c4d8c7a934431087ca1bc6e1b
tree9c1c7f3b113689f4239bb5ca8f6584e80ef85e53
parented00caf2bd5d47598c0776446bef0b6786d6264e
nfp: flower: configure tunnel neighbour on cmsg rx

nfp_tun_write_neigh() function will configure a tunnel neighbour when
calling nfp_tun_neigh_event_handler() or nfp_flower_cmsg_process_one_rx()
(with no tunnel neighbour type) from firmware.

When configuring IP on physical port as a tunnel endpoint, no operation
will be performed after receiving the cmsg mentioned above.

Therefore, add a progress to configure tunnel neighbour in this case.

v2: Correct format of fixes tag.

Fixes: 5b89efd39f95 ("nfp: flower: rework tunnel neighbour configuration")
Signed-off-by: Tianyu Yuan <tianyu.yuan@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Reviewed-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220714081915.148378-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c