* [dpdk-dev] [PATCH] net/bonding: Changes for accomodating jumbo frames in bond
@ 2020-04-21 7:48 Kiran KN
2020-11-26 1:33 ` Min Hu (Connor)
0 siblings, 1 reply; 3+ messages in thread
From: Kiran KN @ 2020-04-21 7:48 UTC (permalink / raw)
To: dev; +Cc: Chas Williams, Thomas Monjalon, david.marchand
Propagate max rx packet length and jumbo offload capabilities
to slaves from master
Signed-off-by: Kiran KN <kirankn@juniper.net>
---
drivers/net/bonding/rte_eth_bond_pmd.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index e1f105233..cf9247e7e 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -1722,6 +1722,17 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,
slave_eth_dev->data->dev_conf.rxmode.offloads &=
~DEV_RX_OFFLOAD_VLAN_FILTER;
+ slave_eth_dev->data->dev_conf.rxmode.max_rx_pkt_len =
+ bonded_eth_dev->data->dev_conf.rxmode.max_rx_pkt_len;
+
+ if (bonded_eth_dev->data->dev_conf.rxmode.offloads &
+ DEV_RX_OFFLOAD_JUMBO_FRAME)
+ slave_eth_dev->data->dev_conf.rxmode.offloads |=
+ DEV_RX_OFFLOAD_JUMBO_FRAME;
+ else
+ slave_eth_dev->data->dev_conf.rxmode.offloads &=
+ ~DEV_RX_OFFLOAD_JUMBO_FRAME;
+
nb_rx_queues = bonded_eth_dev->data->nb_rx_queues;
nb_tx_queues = bonded_eth_dev->data->nb_tx_queues;
--
2.16.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/bonding: Changes for accomodating jumbo frames in bond
2020-04-21 7:48 [dpdk-dev] [PATCH] net/bonding: Changes for accomodating jumbo frames in bond Kiran KN
@ 2020-11-26 1:33 ` Min Hu (Connor)
2020-12-08 12:34 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Min Hu (Connor) @ 2020-11-26 1:33 UTC (permalink / raw)
To: kirankn; +Cc: chas3, david.marchand, dev, thomas
It looks good to me, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/bonding: Changes for accomodating jumbo frames in bond
2020-11-26 1:33 ` Min Hu (Connor)
@ 2020-12-08 12:34 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2020-12-08 12:34 UTC (permalink / raw)
To: Min Hu (Connor), kirankn; +Cc: chas3, david.marchand, dev, thomas
On 11/26/2020 1:33 AM, Min Hu (Connor) wrote:
> It looks good to me, thanks.
>
Converting to an explicit ack:
Acked-by: Min Hu (Connor) <humin29@huawei.com>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-08 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 7:48 [dpdk-dev] [PATCH] net/bonding: Changes for accomodating jumbo frames in bond Kiran KN
2020-11-26 1:33 ` Min Hu (Connor)
2020-12-08 12:34 ` Ferruh Yigit
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).