ITEM_L2TPV3OIP_SESSION_ID,
ITEM_ESP,
ITEM_ESP_SPI,
+ ITEM_AH,
+ ITEM_AH_SPI,
/* Validate/create actions. */
ACTIONS,
ITEM_TAG,
ITEM_L2TPV3OIP,
ITEM_ESP,
+ ITEM_AH,
END_SET,
ZERO,
};
ZERO,
};
+static const enum index item_ah[] = {
+ ITEM_AH_SPI,
+ ITEM_NEXT,
+ ZERO,
+};
+
static const enum index next_set_raw[] = {
SET_RAW_INDEX,
ITEM_ETH,
.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_esp,
hdr.spi)),
},
+ [ITEM_AH] = {
+ .name = "ah",
+ .help = "match AH header",
+ .priv = PRIV_ITEM(AH, sizeof(struct rte_flow_item_ah)),
+ .next = NEXT(item_ah),
+ .call = parse_vc,
+ },
+ [ITEM_AH_SPI] = {
+ .name = "spi",
+ .help = "security parameters index",
+ .next = NEXT(item_ah, NEXT_ENTRY(UNSIGNED), item_param),
+ .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_ah, spi)),
+ },
/* Validate/create actions. */
[ACTIONS] = {
.name = "actions",
case RTE_FLOW_ITEM_TYPE_ESP:
mask = &rte_flow_item_esp_mask;
break;
+ case RTE_FLOW_ITEM_TYPE_AH:
+ mask = &rte_flow_item_ah_mask;
+ break;
default:
break;
}
size = sizeof(struct rte_flow_item_esp);
proto = 0x32;
break;
+ case RTE_FLOW_ITEM_TYPE_AH:
+ size = sizeof(struct rte_flow_item_ah);
+ proto = 0x33;
+ break;
default:
printf("Error - Not supported item\n");
*total_size = 0;