DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/liquidio: move to new offload API
@ 2018-03-13  9:46 Shijith Thotton
  2018-03-28  6:51 ` [dpdk-dev] [PATCH v2] " Shijith Thotton
  0 siblings, 1 reply; 3+ messages in thread
From: Shijith Thotton @ 2018-03-13  9:46 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: Shijith Thotton, dev

From: Shijith Thotton <sthotton@caviumnetworks.com>

Make use of new offloads member instead of bit fields in port Rx conf.

Signed-off-by: Shijith Thotton <sthotton@caviumnetworks.com>
---
 drivers/net/liquidio/lio_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c
index e1a20cd..9884872 100644
--- a/drivers/net/liquidio/lio_ethdev.c
+++ b/drivers/net/liquidio/lio_ethdev.c
@@ -478,9 +478,11 @@ struct rte_lio_xstats_name_off {
 	}
 
 	if (frame_len > ETHER_MAX_LEN)
-		eth_dev->data->dev_conf.rxmode.jumbo_frame = 1;
+		eth_dev->data->dev_conf.rxmode.offloads |=
+			DEV_RX_OFFLOAD_JUMBO_FRAME;
 	else
-		eth_dev->data->dev_conf.rxmode.jumbo_frame = 0;
+		eth_dev->data->dev_conf.rxmode.offloads &=
+			~DEV_RX_OFFLOAD_JUMBO_FRAME;
 
 	eth_dev->data->dev_conf.rxmode.max_rx_pkt_len = frame_len;
 	eth_dev->data->mtu = mtu;
-- 
1.8.3.1

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

* [dpdk-dev] [PATCH v2] net/liquidio: move to new offload API
  2018-03-13  9:46 [dpdk-dev] [PATCH] net/liquidio: move to new offload API Shijith Thotton
@ 2018-03-28  6:51 ` Shijith Thotton
  2018-03-28 16:44   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Shijith Thotton @ 2018-03-28  6:51 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev

Make use of new offloads member instead of bit fields in port Rx conf.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
---
v2: corrected commit log mail address.

 drivers/net/liquidio/lio_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c
index b9e5734..eeb8350 100644
--- a/drivers/net/liquidio/lio_ethdev.c
+++ b/drivers/net/liquidio/lio_ethdev.c
@@ -478,9 +478,11 @@ struct rte_lio_xstats_name_off {
 	}
 
 	if (frame_len > ETHER_MAX_LEN)
-		eth_dev->data->dev_conf.rxmode.jumbo_frame = 1;
+		eth_dev->data->dev_conf.rxmode.offloads |=
+			DEV_RX_OFFLOAD_JUMBO_FRAME;
 	else
-		eth_dev->data->dev_conf.rxmode.jumbo_frame = 0;
+		eth_dev->data->dev_conf.rxmode.offloads &=
+			~DEV_RX_OFFLOAD_JUMBO_FRAME;
 
 	eth_dev->data->dev_conf.rxmode.max_rx_pkt_len = frame_len;
 	eth_dev->data->mtu = mtu;
-- 
1.8.3.1

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

* Re: [dpdk-dev] [PATCH v2] net/liquidio: move to new offload API
  2018-03-28  6:51 ` [dpdk-dev] [PATCH v2] " Shijith Thotton
@ 2018-03-28 16:44   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2018-03-28 16:44 UTC (permalink / raw)
  To: Shijith Thotton; +Cc: dev

On 3/28/2018 7:51 AM, Shijith Thotton wrote:
> Make use of new offloads member instead of bit fields in port Rx conf.
> 
> Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>

Applied to dpdk-next-net/master, thanks.

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

end of thread, other threads:[~2018-03-28 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-13  9:46 [dpdk-dev] [PATCH] net/liquidio: move to new offload API Shijith Thotton
2018-03-28  6:51 ` [dpdk-dev] [PATCH v2] " Shijith Thotton
2018-03-28 16:44   ` 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).