|
@@ -82,6 +82,12 @@ static struct ixgbe_mat_field ixgbe_tcp_fields[] = {
|
|
{ .val = NULL } /* terminal node */
|
|
{ .val = NULL } /* terminal node */
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static struct ixgbe_mat_field ixgbe_udp_fields[] = {
|
|
|
|
+ {.off = 0, .val = ixgbe_mat_prgm_ports,
|
|
|
|
+ .type = IXGBE_ATR_FLOW_TYPE_UDPV4},
|
|
|
|
+ { .val = NULL } /* terminal node */
|
|
|
|
+};
|
|
|
|
+
|
|
struct ixgbe_nexthdr {
|
|
struct ixgbe_nexthdr {
|
|
/* offset, shift, and mask of position to next header */
|
|
/* offset, shift, and mask of position to next header */
|
|
unsigned int o;
|
|
unsigned int o;
|
|
@@ -98,6 +104,8 @@ struct ixgbe_nexthdr {
|
|
static struct ixgbe_nexthdr ixgbe_ipv4_jumps[] = {
|
|
static struct ixgbe_nexthdr ixgbe_ipv4_jumps[] = {
|
|
{ .o = 0, .s = 6, .m = 0xf,
|
|
{ .o = 0, .s = 6, .m = 0xf,
|
|
.off = 8, .val = 0x600, .mask = 0xff00, .jump = ixgbe_tcp_fields},
|
|
.off = 8, .val = 0x600, .mask = 0xff00, .jump = ixgbe_tcp_fields},
|
|
|
|
+ { .o = 0, .s = 6, .m = 0xf,
|
|
|
|
+ .off = 8, .val = 0x1100, .mask = 0xff00, .jump = ixgbe_udp_fields},
|
|
{ .jump = NULL } /* terminal node */
|
|
{ .jump = NULL } /* terminal node */
|
|
};
|
|
};
|
|
#endif /* _IXGBE_MODEL_H_ */
|
|
#endif /* _IXGBE_MODEL_H_ */
|