diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-23 22:49:43 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2010-11-16 19:10:27 +0000 |
commit | f5286cddc3b0d517e0928e7b1def3a4de23497d3 (patch) | |
tree | 4ec739a4479182b7147b6833a1778579f4d3853f /ethtool.8 | |
parent | 9362cee5318a3eeb7aa464e3b5e5ac12a63c9652 (diff) | |
download | ethtool-f5286cddc3b0d517e0928e7b1def3a4de23497d3.tar.gz |
ethtool: Add Ethernet-level RX n-tuple filtering and 'clear' action
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'ethtool.8')
-rw-r--r-- | ethtool.8 | 48 |
1 files changed, 43 insertions, 5 deletions
@@ -233,8 +233,9 @@ ethtool \- Display or change ethernet card settings .B ethtool \-u|\-\-show\-ntuple .I ethX -.B ethtool \-U|\-\-config\-ntuple -.I ethX +.TP +.BI ethtool\ \-U|\-\-config\-ntuple \ ethX +.RB { .A3 flow-type tcp4 udp4 sctp4 .RB [ src-ip .IR addr @@ -252,6 +253,21 @@ ethtool \- Display or change ethernet card settings .IR port .RB [ dst-port-mask .IR mask ]] +.br +.RB | \ flow-type\ ether +.RB [ src +.IR mac-addr +.RB [ src-mask +.IR mask ]] +.RB [ dst +.IR mac-addr +.RB [ dst-mask +.IR mask ]] +.RB [ proto +.IR N +.RB [ proto-mask +.IR mask ]]\ } +.br .RB [ vlan .IR VLAN-tag .RB [ vlan-mask @@ -649,7 +665,7 @@ Get Rx ntuple filters and actions, then display them to the user. .B \-U \-\-config-ntuple Configure Rx ntuple filters and actions .TP -.B flow-type tcp4|udp4|sctp4 +.B flow-type tcp4|udp4|sctp4|ether .RS .PD 0 .TP 3 @@ -658,6 +674,8 @@ Configure Rx ntuple filters and actions .BR "udp4" " UDP over IPv4" .TP 3 .BR "sctp4" " SCTP over IPv4" +.TP 3 +.BR "ether" " Ethernet" .PD .RE .TP @@ -686,6 +704,25 @@ Includes the destination port. .BI dst-port-mask \ mask Specify a mask for the destination port. .TP +.BI src \ mac-addr +Includes the source MAC address, specified as 6 bytes in hexadecimal +separated by colons. +.TP +.BI src-mask \ mask +Specify a mask for the source MAC address. +.TP +.BI dst \ mac-addr +Includes the destination MAC address. +.TP +.BI dst-mask \ mask +Specify a mask for the destination MAC address. +.TP +.BI proto \ N +Includes the Ethernet protocol number (ethertype). +.TP +.BI proto-mask \ mask +Specify a mask for the Ethernet protocol number. +.TP .BI vlan \ VLAN-tag Includes the VLAN tag. .TP @@ -699,11 +736,12 @@ Includes 64-bits of user-specific data. Specify a mask for the user-specific data. .TP .BI action \ N -Specifies either the Rx queue to send packets to, or to drop -the matched flow. +Specifies the Rx queue to send packets to, or some other action. .RS .PD 0 .TP 3 +.BR "-2" " Clear the filter" +.TP 3 .BR "-1" " Drop the matched flow" .TP 3 .BR "0 or higher" " Rx queue to route the flow" |