This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 47b343a8f508b1dad511a1498999caa876c12eb5 (commit) from 5d35ffb5d02c6d3f4cabd170969846b56878f8fd (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 47b343a8f508b1dad511a1498999caa876c12eb5 Author: Balasubramanian Manoharan bala.manoharan@linaro.org Date: Thu Jan 5 19:09:26 2017 +0530
validation: pktio: fix invalid mac addr
Fixes https://bugs.linaro.org/show_bug.cgi?id=2496
Signed-off-by: Balasubramanian Manoharan bala.manoharan@linaro.org Reviewed-by: Josep Puigdemont josep.puigdemont@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/pktio/pktio.c b/test/common_plat/validation/api/pktio/pktio.c index 7c979fb..23ecc4a 100644 --- a/test/common_plat/validation/api/pktio/pktio.c +++ b/test/common_plat/validation/api/pktio/pktio.c @@ -31,6 +31,8 @@ #define PKTIN_TS_MAX_RES 10000000000 #define PKTIN_TS_CMP_RES 1
+#define PKTIO_SRC_MAC {1, 2, 3, 4, 5, 6} +#define PKTIO_DST_MAC {6, 5, 4, 3, 2, 1} #undef DEBUG_STATS
/** interface names used for testing */ @@ -245,7 +247,8 @@ static uint32_t pktio_init_packet(odp_packet_t pkt) odph_udphdr_t *udp; char *buf; uint16_t seq; - uint8_t mac[ODP_PKTIO_MACADDR_MAXSIZE] = {0}; + uint8_t src_mac[ODP_PKTIO_MACADDR_MAXSIZE] = PKTIO_SRC_MAC; + uint8_t dst_mac[ODP_PKTIO_MACADDR_MAXSIZE] = PKTIO_DST_MAC; int pkt_len = odp_packet_len(pkt);
buf = odp_packet_data(pkt); @@ -253,8 +256,8 @@ static uint32_t pktio_init_packet(odp_packet_t pkt) /* Ethernet */ odp_packet_l2_offset_set(pkt, 0); eth = (odph_ethhdr_t *)buf; - memcpy(eth->src.addr, mac, ODPH_ETHADDR_LEN); - memcpy(eth->dst.addr, mac, ODPH_ETHADDR_LEN); + memcpy(eth->src.addr, src_mac, ODPH_ETHADDR_LEN); + memcpy(eth->dst.addr, dst_mac, ODPH_ETHADDR_LEN); eth->type = odp_cpu_to_be_16(ODPH_ETHTYPE_IPV4);
/* IP */
-----------------------------------------------------------------------
Summary of changes: test/common_plat/validation/api/pktio/pktio.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive