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 360c1d34b52a2356619b9290811862b9de41de00 (commit) from 43ea7311f98d1602ab29e9eec4ea9c895d73181d (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 360c1d34b52a2356619b9290811862b9de41de00 Author: Matias Elo matias.elo@nokia.com Date: Fri Sep 1 15:33:30 2017 +0300
linux-gen: socket: don't use odp_packet_l2_offset() in _tx_pkt_to_iovec()
A packet may not have valid L2 offset set, so odp_packet_l2_offset() cannot be used when transmitting packets.
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/pktio/socket.c b/platform/linux-generic/pktio/socket.c index 130c60d2..5841e244 100644 --- a/platform/linux-generic/pktio/socket.c +++ b/platform/linux-generic/pktio/socket.c @@ -697,7 +697,7 @@ static uint32_t _tx_pkt_to_iovec(odp_packet_t pkt, struct iovec iovecs[MAX_SEGS]) { uint32_t pkt_len = odp_packet_len(pkt); - uint32_t offset = odp_packet_l2_offset(pkt); + uint32_t offset = 0; uint32_t iov_count = 0;
while (offset < pkt_len) {
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/pktio/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive