diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2008-09-12 19:30:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-12 19:30:20 -0400 |
commit | ca9b0e27e072be4cef2f5f0cbc0b0fd94eae3520 (patch) | |
tree | c236e31759299193e688cf7fe78809c24449ede1 /Documentation/networking/multiqueue.txt | |
parent | 92651940ab00dbe64722e908f70d816713d677b7 (diff) |
pkt_action: add new action skbedit
This new action will have the ability to change the priority and/or
queue_mapping fields on an sk_buff.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/multiqueue.txt')
-rw-r--r-- | Documentation/networking/multiqueue.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/networking/multiqueue.txt b/Documentation/networking/multiqueue.txt index 5787ee6eca4f..10113ffa8072 100644 --- a/Documentation/networking/multiqueue.txt +++ b/Documentation/networking/multiqueue.txt | |||
@@ -66,7 +66,14 @@ band 3 => queue 3 | |||
66 | Traffic will begin flowing through each queue if your base device has either | 66 | Traffic will begin flowing through each queue if your base device has either |
67 | the default simple_tx_hash or a custom netdev->select_queue() defined. | 67 | the default simple_tx_hash or a custom netdev->select_queue() defined. |
68 | 68 | ||
69 | The behavior of tc filters remains the same. | 69 | The behavior of tc filters remains the same. However a new tc action, |
70 | skbedit, has been added. Assuming you wanted to route all traffic to a | ||
71 | specific host, for example 192.168.0.3, though a specific queue you could use | ||
72 | this action and establish a filter such as: | ||
73 | |||
74 | tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \ | ||
75 | match ip dst 192.168.0.3 \ | ||
76 | action skbedit queue_mapping 3 | ||
70 | 77 | ||
71 | Author: Alexander Duyck <alexander.h.duyck@intel.com> | 78 | Author: Alexander Duyck <alexander.h.duyck@intel.com> |
72 | Original Author: Peter P. Waskiewicz Jr. <peter.p.waskiewicz.jr@intel.com> | 79 | Original Author: Peter P. Waskiewicz Jr. <peter.p.waskiewicz.jr@intel.com> |