From 3a183dbe452763442ca8c985a75f03aabe11a479 Mon Sep 17 00:00:00 2001 From: Dastin Wilski Date: Wed, 30 Mar 2022 14:15:56 +0200 Subject: dpdk: macros changes for dpdk 22.03 New dpdk version deprecates some macros used by VPP. This patch changes them to 22.03 version. Type: improvement Signed-off-by: Dastin Wilski Change-Id: Ic362ed318dc1ad88bb682ef13fbd6159171fbaef --- src/plugins/dpdk/device/format.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/plugins/dpdk/device/format.c') diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index b06c4cef344..ab14231d5f7 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -197,8 +197,9 @@ format_dpdk_link_status (u8 * s, va_list * args) { u32 promisc = rte_eth_promiscuous_get (xd->port_id); - s = format (s, "%s duplex ", (l->link_duplex == ETH_LINK_FULL_DUPLEX) ? - "full" : "half"); + s = format (s, "%s duplex ", + (l->link_duplex == RTE_ETH_LINK_FULL_DUPLEX) ? "full" : + "half"); s = format (s, "max-frame-size %d %s\n", hi->max_frame_size, promisc ? " promisc" : ""); } @@ -482,9 +483,9 @@ format_dpdk_device (u8 * s, va_list * args) vlan_off = rte_eth_dev_get_vlan_offload (xd->port_id); s = format (s, "%Uvlan offload: strip %s filter %s qinq %s\n", format_white_space, indent + 2, - vlan_off & ETH_VLAN_STRIP_OFFLOAD ? "on" : "off", - vlan_off & ETH_VLAN_FILTER_OFFLOAD ? "on" : "off", - vlan_off & ETH_VLAN_EXTEND_OFFLOAD ? "on" : "off"); + vlan_off & RTE_ETH_VLAN_STRIP_OFFLOAD ? "on" : "off", + vlan_off & RTE_ETH_VLAN_FILTER_OFFLOAD ? "on" : "off", + vlan_off & RTE_ETH_VLAN_EXTEND_OFFLOAD ? "on" : "off"); s = format (s, "%Urx offload avail: %U\n", format_white_space, indent + 2, format_dpdk_rx_offload_caps, di.rx_offload_capa); s = format (s, "%Urx offload active: %U\n", format_white_space, indent + 2, -- cgit 1.2.3-korg