[dpdk-dev] [PATCH v2] net/liquidio: move to new offload API
Shijith Thotton
shijith.thotton at caviumnetworks.com
Wed Mar 28 08:51:06 CEST 2018
Make use of new offloads member instead of bit fields in port Rx conf.
Signed-off-by: Shijith Thotton <shijith.thotton at 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
More information about the dev
mailing list