Lines Matching +full:per +full:- +full:port +full:- +full:set
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
46 T4_SET_FILTER_MODE, /* set global filter mode */
54 T4_CLEAR_STATS, /* clear a port's MAC statistics */
55 T4_SET_OFLD_POLICY, /* Set offload policy */
56 T4_SET_SCHED_CLASS, /* set sched class */
57 T4_SET_SCHED_QUEUE, /* set queue class */
64 T4_SET_FILTER_MASK, /* set filter mask (hashfilter mode) */
110 #define T4_FILTER_IP_SPORT 0x10 /* Source IP port */
111 #define T4_FILTER_IP_DPORT 0x20 /* Destination IP port */
113 #define T4_FILTER_PORT 0x80 /* Physical ingress port */
150 PROMISC = 4, /* no match but port is promiscuous */
151 HYPPROMISC = 5, /* port is hypervisor-promisuous + not bcast */
160 DST_MODE_FILT_RSS /* queue selected by hashing in filter-specified
167 NAT_MODE_DIP_DP, /* NAT on Dst IP, Dst Port */
168 NAT_MODE_DIP_DP_SIP, /* NAT on Dst IP, Dst Port and Src IP */
169 NAT_MODE_DIP_DP_SP, /* NAT on Dst IP, Dst Port and Src Port */
170 NAT_MODE_SIP_SP, /* NAT on Src IP and Src Port */
171 NAT_MODE_DIP_SIP_SP, /* NAT on Dst IP, Src IP and Src Port */
172 NAT_MODE_ALL /* NAT on entire 4-tuple */
181 uint16_t sport; /* source port */
182 uint16_t dport; /* destination port */
187 * set of fields allowed by the global mode.
195 uint32_t iport:3; /* ingress port */
213 uint32_t maskhash:1; /* dirsteer=0: steer to an RSS sub-region */
219 * filter with "switch" set will be looped back out as an egress
220 * packet -- potentially with some Ethernet header rewriting.
222 uint32_t eport:2; /* egress port to switch packet out */
236 uint16_t nat_dport; /* destination port to use after NAT'ing */
237 uint16_t nat_sport; /* source port to use after NAT'ing */
257 int8_t mode; /* per-class or per-flow */
259 int8_t ratemode; /* %port relative or kbps absolute */
269 * Support for "sched-class" command to allow a TX Scheduling Class to be
273 int8_t subcmd; /* sub-command */
276 struct { /* sub-command SCHED_CLASS_CONFIG */
285 SCHED_CLASS_SUBCMD_CONFIG, /* config sub-command */
286 SCHED_CLASS_SUBCMD_PARAMS, /* params sub-command */
300 SCHED_CLASS_MODE_CLASS, /* per-class scheduling */
301 SCHED_CLASS_MODE_FLOW, /* per-flow scheduling */
310 SCHED_CLASS_RATEMODE_REL, /* percent of port bandwidth */
319 uint8_t port; member
320 int8_t queue; /* queue index; -1 => all queues */
321 int8_t cl; /* class index; -1 => unbind */
353 uint8_t port; member
378 QUEUE_RANDOM = -1,
379 QUEUE_ROUNDROBIN = -2,
405 * An offload policy consists of a set of rules matched in sequence. The