-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/nfp: fix RSS failed on VXLAN inner layer
Before the commit 5126a90 ("net/nfp: use offload flag to control VXLAN configuration"), in the initial logic 'nfp_net_start()' will enable the NFP_NET_CFG_CTRL_VXLAN flag if hardware has the capability, 'udp_tunnel_port_add()' and 'udp_tunnel_port_del()' just do the port add and delete action. But the commit 5126a90 ("net/nfp: use offload flag to control VXLAN configuration") added another limitation of RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO over the VXLAN inner RSS flag of Tx wrongly, which caused the NFP_NET_CFG_CTRL_VXLAN cannot be enable, thus 'udp_tunnel_port_add()' and 'udp_tunnel_port_del()' can not done their works. This commit fix the problem and do a little of enhancement to the initial logic, move the logic of enable NFP_NET_CFG_CTRL_VXLAN into the 'udp_tunnel_port_add()', and add the logic of disable NFP_NET_CFG_CTRL_VXLAN into the 'udp_tunnel_port_del()', thus the whole solution more complete and easier to understand. Fixes: 5126a90 ("net/nfp: use offload flag to control VXLAN configuration") Cc: stable@dpdk.org Signed-off-by: Long Wu <long.wu@corigine.com> Reviewed-by: Chaoyong He <chaoyong.he@corigine.com> Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
- Loading branch information
1 parent
6011b12
commit 79e7b4f
Showing
3 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters