patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH 18.11] net/bnxt: advertise scatter Rx offload capability
@ 2019-12-04 21:05 Lance Richardson
  2019-12-05 10:54 ` Kevin Traynor
  0 siblings, 1 reply; 2+ messages in thread
From: Lance Richardson @ 2019-12-04 21:05 UTC (permalink / raw)
  To: stable; +Cc: ajit.khaparde, ktraynor, Lance Richardson

[ upstream commit 94d4afd2d167886f9eb4833443478e048cd60588 ]

Scattered receive is supported but not included in receive offload
capabilities. Fix by adding it to the receive offload capabilities..

Fixes: 9c1507d96ab8 ("net/bnxt: switch to the new offload API")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
Note: this patch drops the upstream hunk related to vector
mode support, which is not present in 18.11.

 drivers/net/bnxt/bnxt_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 2f3e067ed..47dde067a 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -150,7 +150,8 @@ static const struct rte_pci_id bnxt_pci_id_map[] = {
 				     DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | \
 				     DEV_RX_OFFLOAD_JUMBO_FRAME | \
 				     DEV_RX_OFFLOAD_KEEP_CRC | \
-				     DEV_RX_OFFLOAD_TCP_LRO)
+				     DEV_RX_OFFLOAD_TCP_LRO | \
+				     DEV_RX_OFFLOAD_SCATTER)
 
 static int bnxt_vlan_offload_set_op(struct rte_eth_dev *dev, int mask);
 static void bnxt_print_link_info(struct rte_eth_dev *eth_dev);
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-05 10:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04 21:05 [dpdk-stable] [PATCH 18.11] net/bnxt: advertise scatter Rx offload capability Lance Richardson
2019-12-05 10:54 ` Kevin Traynor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).