summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2019-08-20 15:45:03 +0200
committerKevin Traynor <ktraynor@redhat.com>2019-10-02 13:13:22 +0100
commit86e56d5f98c9726c7549c09edf698370f7612b8b (patch)
treeba46bd9bccd12238825a28fe1829d327f29c2d61
parentd908ee9de303b1c4f22410f0fd5be710ae1eb5fc (diff)
downloaddpdk-stable-86e56d5f98c9726c7549c09edf698370f7612b8b.zip
dpdk-stable-86e56d5f98c9726c7549c09edf698370f7612b8b.tar.gz
dpdk-stable-86e56d5f98c9726c7549c09edf698370f7612b8b.tar.xz
ethdev: fix endian annotation for SPI item
[ upstream commit fbb25a3878cc7c6de4c68c8cee01983d127e2205] 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") 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 c0fe879..4a969ab 100644
--- a/lib/librte_ethdev/rte_flow.h
+++ b/lib/librte_ethdev/rte_flow.h
@@ -923,7 +923,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