Skip to content

Commit

Permalink
cps: adopt new RTE_ETHER_ADDR_* macros
Browse files Browse the repository at this point in the history
This commit closes #677.
  • Loading branch information
AltraMayor committed Mar 22, 2024
1 parent 4ef3f91 commit b73e448
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cps/kni.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,6 @@
#include "gatekeeper_main.h"
#include "kni.h"

/*
* XXX #677 Adopt RTE_ETHER_ADDR_PRT_FMT and RTE_ETHER_ADDR_BYTES
* once DPDK is updated.
*/
/**
* Macro to print six-bytes of MAC address in hex format
*/
#define RTE_ETHER_ADDR_PRT_FMT "%02X:%02X:%02X:%02X:%02X:%02X"
/**
* Macro to extract the MAC address bytes from rte_ether_addr struct
*/
#define RTE_ETHER_ADDR_BYTES(mac_addrs) ((mac_addrs)->addr_bytes[0]), \
((mac_addrs)->addr_bytes[1]), \
((mac_addrs)->addr_bytes[2]), \
((mac_addrs)->addr_bytes[3]), \
((mac_addrs)->addr_bytes[4]), \
((mac_addrs)->addr_bytes[5])

#define KNI_BUS_NAME "vdev"

void
Expand Down

0 comments on commit b73e448

Please sign in to comment.