]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/tc-skbedit.8
rdma: Add the prefix for driver attributes
[mirror_iproute2.git] / man / man8 / tc-skbedit.8
CommitLineData
ae6cf29b
PS
1.TH "SKB editing action in tc" 8 "12 Jan 2015" "iproute2" "Linux"
2
3.SH NAME
4skbedit - SKB editing action
5.SH SYNOPSIS
6.in +8
7.ti -8
8.BR tc " ... " "action skbedit " [ " queue_mapping
9.IR QUEUE_MAPPING " ] ["
10.B priority
11.IR PRIORITY " ] ["
12.B mark
13.IR MARK " ]"
1d1e0fd2
JHS
14.B ptype
15.IR PTYPE " ]"
ae6cf29b
PS
16.SH DESCRIPTION
17The
18.B skbedit
19action allows to change a packet's associated meta data. It complements the
20.B pedit
21action, which in turn allows to change parts of the packet data itself.
c73b621c
PS
22
23The most unique feature of
24.B skbedit
25is it's ability to decide over which queue of an interface with multiple
26transmit queues the packet is to be sent out. The number of available transmit
27queues is reflected by sysfs entries within
28.I /sys/class/net/<interface>/queues
29with name
30.I tx-N
31(where
32.I N
33is the actual queue number).
ae6cf29b
PS
34.SH OPTIONS
35.TP
36.BI queue_mapping " QUEUE_MAPPING"
37Override the packet's transmit queue. Useful when applied to packets transmitted
38over MQ-capable network interfaces.
39.I QUEUE_MAPPING
40is an unsigned 16bit value in decimal format.
41.TP
42.BI priority " PRIORITY"
43Override the packet classification decision.
44.I PRIORITY
45is either
46.BR root ", " none
47or a hexadecimal major class ID optionally followed by a colon
48.RB ( : )
49and a hexadecimal minor class ID.
50.TP
51.BI mark " MARK"
52Change the packet's firewall mark value.
53.I MARK
54is an unsigned 32bit value in automatically detected format (i.e., prefix with
55.RB ' 0x '
56for hexadecimal interpretation, etc.).
1d1e0fd2
JHS
57.TP
58.BI ptype " PTYPE"
59Override the packet's type. Useful for setting packet type to host when
60needing to allow ingressing packets with the wrong MAC address but
61correct IP address.
62.I PTYPE
63is one of: host, otherhost, broadcast, multicast
ae6cf29b
PS
64.SH SEE ALSO
65.BR tc (8),
66.BR tc-pedit (8)