net/liquidio: move to new offload API
authorShijith Thotton <shijith.thotton@caviumnetworks.com>
Wed, 28 Mar 2018 06:51:06 +0000 (12:21 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
Make use of new offloads member instead of bit fields in port Rx conf.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
drivers/net/liquidio/lio_ethdev.c

index b9e5734..eeb8350 100644 (file)
@@ -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;