summaryrefslogtreecommitdiff
path: root/trafgen_l2.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-09-22 23:55:36 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-10-04 17:19:04 +0200
commit8aa7e5bf95e452cec43412036b59c04014149cde (patch)
treec4868f49e2455f3839656686eff01ef7242d600c /trafgen_l2.h
parentd9ae1dc5ab0c71174a5ef56a770fb12a51911839 (diff)
trafgen: l2: Add support for PFC header
Add PFC header fields setting (prio vector, time per priority). By default Ethernet header is pushed with required fields. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l2.h')
-rw-r--r--trafgen_l2.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/trafgen_l2.h b/trafgen_l2.h
index 7c8ef7d..dd1d947 100644
--- a/trafgen_l2.h
+++ b/trafgen_l2.h
@@ -12,6 +12,27 @@ enum pause_field {
PAUSE_TIME,
};
+enum pfc_field {
+ PFC_OPCODE,
+ PFC_PRIO,
+ PFC_PRIO_0,
+ PFC_PRIO_1,
+ PFC_PRIO_2,
+ PFC_PRIO_3,
+ PFC_PRIO_4,
+ PFC_PRIO_5,
+ PFC_PRIO_6,
+ PFC_PRIO_7,
+ PFC_TIME_0,
+ PFC_TIME_1,
+ PFC_TIME_2,
+ PFC_TIME_3,
+ PFC_TIME_4,
+ PFC_TIME_5,
+ PFC_TIME_6,
+ PFC_TIME_7,
+};
+
enum arp_field {
ARP_HTYPE,
ARP_PTYPE,