summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2019-08-20 15:45:03 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-08-27 15:15:00 +0200
commitfbb25a3878cc7c6de4c68c8cee01983d127e2205 (patch)
treeb8c5e8ca25f0563e033c0cb884840b0ee602f130
parent3c5f2cdb56d769755962a6c184e2a0a0ad70d93f (diff)
downloaddpdk-next-eventdev-fbb25a3878cc7c6de4c68c8cee01983d127e2205.zip
dpdk-next-eventdev-fbb25a3878cc7c6de4c68c8cee01983d127e2205.tar.gz
dpdk-next-eventdev-fbb25a3878cc7c6de4c68c8cee01983d127e2205.tar.xz
ethdev: fix endian annotation for SPI item
Security Parameters Index (SPI) should be set with network endian values. While 0xffffffff == htonl(0xffffffff), this missing annotation is caught by sparse when compiling ovs (dpdk-latest branch). Fixes: d4b684f7197a ("net: add ESP header to generic flow steering") Cc: stable@dpdk.org Signed-off-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
-rw-r--r--lib/librte_ethdev/rte_flow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h
index b66bf14..354cb1d 100644
--- a/lib/librte_ethdev/rte_flow.h
+++ b/lib/librte_ethdev/rte_flow.h
@@ -935,7 +935,7 @@ struct rte_flow_item_esp {
#ifndef __cplusplus
static const struct rte_flow_item_esp rte_flow_item_esp_mask = {
.hdr = {
- .spi = 0xffffffff,
+ .spi = RTE_BE32(0xffffffff),
},
};
#endif