net/cxgbe: add flow operations to offload VLAN actions
[dpdk.git] / drivers / net / cxgbe / cxgbe_filter.h
index be12e23..c7d9366 100644 (file)
@@ -99,6 +99,9 @@ struct ch_filter_specification {
        uint32_t iq:10;         /* ingress queue */
 
        uint32_t eport:2;       /* egress port to switch packet out */
+       uint32_t newvlan:2;     /* rewrite VLAN Tag */
+       uint8_t dmac[ETHER_ADDR_LEN];   /* new destination MAC address */
+       uint16_t vlan;          /* VLAN Tag to insert */
 
        /* Filter rule value/mask pairs. */
        struct ch_filter_tuple val;
@@ -111,6 +114,12 @@ enum {
        FILTER_SWITCH
 };
 
+enum {
+       VLAN_REMOVE = 1,
+       VLAN_INSERT,
+       VLAN_REWRITE
+};
+
 enum filter_type {
        FILTER_TYPE_IPV4 = 0,
        FILTER_TYPE_IPV6,