Looking for some help...
struct rte_flow_attr attr = { .ingress = 1 };
struct rte_flow_item pattern[2];
struct rte_flow_action actions[2];
struct rte_flow_item_ipv4 ipv4;
struct rte_flow *flow;
struct rte_flow_error error;
struct in_addr addr;
inet_aton("11.158.251.10", &addr);
ipv4.hdr.dst_addr = htonl(addr.s_addr);
pattern[0].type = RTE_FLOW_ITEM_TYPE_IPV4;
pattern[0].spec = &ipv4;
pattern[1].type = RTE_FLOW_ITEM_TYPE_END;
actions[0].type = RTE_FLOW_ACTION_TYPE_DROP;
actions[1].type = RTE_FLOW_ACTION_TYPE_END;
int validate = rte_flow_validate(0, &attr, pattern, actions, &error);
printf("validate flow: %d, msg %s\n", validate, error.message);
if (!validate)
flow = rte_flow_create(0, &attr, pattern, actions, &error);