From: Shijith Thotton Date: Wed, 28 Mar 2018 06:51:06 +0000 (+0530) Subject: net/liquidio: move to new offload API X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd6aab16711c2e0ce311b2e86f788f487380303f;p=dpdk.git net/liquidio: move to new offload API Make use of new offloads member instead of bit fields in port Rx conf. Signed-off-by: Shijith Thotton --- diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index b9e5734bf8..eeb8350e4d 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -478,9 +478,11 @@ lio_dev_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) } 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;