* [PATCH net 1/1] ice: enable parsing IPSEC SPI headers for RSS
@ 2022-02-11 17:14 Tony Nguyen
2022-02-14 11:30 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Tony Nguyen @ 2022-02-11 17:14 UTC (permalink / raw)
To: davem, kuba; +Cc: Jesse Brandeburg, netdev, anthony.l.nguyen, Gurucharan G
From: Jesse Brandeburg <jesse.brandeburg@intel.com>
The COMMS package can enable the hardware parser to recognize IPSEC
frames with ESP header and SPI identifier. If this package is available
and configured for loading in /lib/firmware, then the driver will
succeed in enabling this protocol type for RSS.
This in turn allows the hardware to hash over the SPI and use it to pick
a consistent receive queue for the same secure flow. Without this all
traffic is steered to the same queue for multiple traffic threads from
the same IP address. For that reason this is marked as a fix, as the
driver supports the model, but it wasn't enabled.
If the package is not available, adding this type will fail, but the
failure is ignored on purpose as it has no negative affect.
Fixes: c90ed40cefe1 ("ice: Enable writing hardware filtering tables")
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice_lib.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
index 0c187cf04fcf..53256aca27c7 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_lib.c
@@ -1684,6 +1684,12 @@ static void ice_vsi_set_rss_flow_fld(struct ice_vsi *vsi)
if (status)
dev_dbg(dev, "ice_add_rss_cfg failed for sctp6 flow, vsi = %d, error = %d\n",
vsi_num, status);
+
+ status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_ESP_SPI,
+ ICE_FLOW_SEG_HDR_ESP);
+ if (status)
+ dev_dbg(dev, "ice_add_rss_cfg failed for esp/spi flow, vsi = %d, error = %d\n",
+ vsi_num, status);
}
/**
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net 1/1] ice: enable parsing IPSEC SPI headers for RSS
2022-02-11 17:14 [PATCH net 1/1] ice: enable parsing IPSEC SPI headers for RSS Tony Nguyen
@ 2022-02-14 11:30 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-02-14 11:30 UTC (permalink / raw)
To: Tony Nguyen; +Cc: davem, kuba, jesse.brandeburg, netdev, gurucharanx.g
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:
On Fri, 11 Feb 2022 09:14:18 -0800 you wrote:
> From: Jesse Brandeburg <jesse.brandeburg@intel.com>
>
> The COMMS package can enable the hardware parser to recognize IPSEC
> frames with ESP header and SPI identifier. If this package is available
> and configured for loading in /lib/firmware, then the driver will
> succeed in enabling this protocol type for RSS.
>
> [...]
Here is the summary with links:
- [net,1/1] ice: enable parsing IPSEC SPI headers for RSS
https://git.kernel.org/netdev/net/c/86006f996346
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-14 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 17:14 [PATCH net 1/1] ice: enable parsing IPSEC SPI headers for RSS Tony Nguyen
2022-02-14 11:30 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.