lib/librte_kni: fix the type for mac address

Message ID 1548301983-20020-1-git-send-email-panjie5@jd.com
State New
Delegated to: Thomas Monjalon
Headers show
Series
  • lib/librte_kni: fix the type for mac address
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Jie Pan Jan. 24, 2019, 3:53 a.m.
The type for mac address in struct rte_kni_conf should be unsigned.

Signed-off-by: Jie Pan <panjie5@jd.com>
---
 lib/librte_kni/rte_kni.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h
index 02ca43b..d44496c 100644
--- a/lib/librte_kni/rte_kni.h
+++ b/lib/librte_kni/rte_kni.h
@@ -68,7 +68,7 @@  struct rte_kni_conf {
 
 	__extension__
 	uint8_t force_bind : 1; /* Flag to bind kernel thread */
-	char mac_addr[ETHER_ADDR_LEN]; /* MAC address assigned to KNI */
+	uint8_t mac_addr[ETHER_ADDR_LEN]; /* MAC address assigned to KNI */
 	uint16_t mtu;
 };