New upstream version 17.11-rc3
[deb_dpdk.git] / lib / librte_net / rte_esp.h
similarity index 69%
rename from drivers/net/xenvirt/rte_eth_xenvirt.h
rename to lib/librte_net/rte_esp.h
index 598adc6..e228af0 100644 (file)
@@ -1,8 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
+ *   Copyright (c) 2016-2017, Mellanox Technologies. All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
  *   modification, are permitted provided that the following conditions
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef _RTE_ETH_XENVIRT_H_
-#define _RTE_ETH_XENVIRT_H_
+#ifndef _RTE_ESP_H_
+#define _RTE_ESP_H_
+
+/**
+ * @file
+ *
+ * ESP-related defines
+ */
+
+#include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#include <rte_mempool.h>
-
 /**
- * Creates mempool for xen virtio PMD.
- * This function uses memzone_reserve to allocate memory for meta data,
- * and uses grant alloc driver to allocate memory for data area.
- * The input parameters are exactly the same as rte_mempool_create.
+ * ESP Header
  */
-struct rte_mempool *
-rte_mempool_gntalloc_create(const char *name, unsigned elt_num, unsigned elt_size,
-                  unsigned cache_size, unsigned private_data_size,
-                  rte_mempool_ctor_t *mp_init, void *mp_init_arg,
-                  rte_mempool_obj_cb_t *obj_init, void *obj_init_arg,
-                  int socket_id, unsigned flags);
-
+struct esp_hdr {
+       uint32_t spi;  /**< Security Parameters Index */
+       uint32_t seq;  /**< packet sequence number */
+} __attribute__((__packed__));
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif
+#endif /* RTE_ESP_H_ */