X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Ftap%2Ftap_flow.h;h=94414f18f4ff5cec55bb7471dcdfc84243742386;hb=54402696f420b23a3521a53ddae28a1364cac084;hp=a05e945df523fc10ed8bcc257506ea379be71e78;hpb=de96fe68ae95990f5ce2cd4c8d9547ab62d2a810;p=dpdk.git diff --git a/drivers/net/tap/tap_flow.h b/drivers/net/tap/tap_flow.h index a05e945df5..94414f18f4 100644 --- a/drivers/net/tap/tap_flow.h +++ b/drivers/net/tap/tap_flow.h @@ -36,6 +36,7 @@ #include #include +#include /** * In TC, priority 0 means we require the kernel to allocate one for us. @@ -49,10 +50,33 @@ #define GROUP_SHIFT 12 #define MAX_GROUP GROUP_MASK +/** + * These index are actually in reversed order: their priority is processed + * by subtracting their value to the lowest priority (PRIORITY_MASK). + * Thus the first one will have the lowest priority in the end + * (but biggest value). + */ +enum implicit_rule_index { + TAP_REMOTE_TX, + TAP_REMOTE_BROADCASTV6, + TAP_REMOTE_BROADCAST, + TAP_REMOTE_ALLMULTI, + TAP_REMOTE_PROMISC, + TAP_REMOTE_LOCAL_MAC, + TAP_REMOTE_MAX_IDX, +}; + int tap_dev_filter_ctrl(struct rte_eth_dev *dev, enum rte_filter_type filter_type, enum rte_filter_op filter_op, void *arg); int tap_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *error); +int tap_flow_implicit_create(struct pmd_internals *pmd, + enum implicit_rule_index idx); +int tap_flow_implicit_destroy(struct pmd_internals *pmd, + enum implicit_rule_index idx); +int tap_flow_implicit_flush(struct pmd_internals *pmd, + struct rte_flow_error *error); + #endif /* _TAP_FLOW_H_ */