+ dpaa_eth_dev_info(dev, &dev_info);
+ if (((~(dev_info.rx_offload_capa) & rx_offloads) != 0)) {
+ DPAA_PMD_ERR("Some Rx offloads are not supported "
+ "requested 0x%" PRIx64 " supported 0x%" PRIx64,
+ rx_offloads, dev_info.rx_offload_capa);
+ return -ENOTSUP;
+ }
+
+ if (((~(dev_info.tx_offload_capa) & tx_offloads) != 0)) {
+ DPAA_PMD_ERR("Some Tx offloads are not supported "
+ "requested 0x%" PRIx64 " supported 0x%" PRIx64,
+ tx_offloads, dev_info.tx_offload_capa);
+ return -ENOTSUP;
+ }
+
+ if (((rx_offloads & DEV_RX_OFFLOAD_IPV4_CKSUM) == 0) ||
+ ((rx_offloads & DEV_RX_OFFLOAD_UDP_CKSUM) == 0) ||
+ ((rx_offloads & DEV_RX_OFFLOAD_TCP_CKSUM) == 0) ||
+ ((tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) == 0) ||
+ ((tx_offloads & DEV_TX_OFFLOAD_UDP_CKSUM) == 0) ||
+ ((tx_offloads & DEV_TX_OFFLOAD_TCP_CKSUM) == 0)) {
+ DPAA_PMD_ERR(" Cksum offloading is enabled by default "
+ " Cannot be disabled. So ignoring this configuration ");
+ }
+
+ if (rx_offloads & DEV_RX_OFFLOAD_JUMBO_FRAME) {