
Chapter XX. Classification and Filtering
Chelsio Unified Wire for Linux
289
Choosing filterMode and filterMask
As mentioned earlier filterMask tuples can be subset of or equal to filterMode tuples. Following
are examples of how you can select filterMode and filterMask and create a Hash filter based on
those values:
•
When all tuples from filterMode are enabled in filterMask
i. Select a filterMode from supported filterMode table based on your requirement. E.g.,
filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
ii. Select a filterMask so that it is a subset of or equal to filterMode based on application. E.g.;
filterMask = fragmentation, mpshittype, protocol, vlan, port, fcoe
Here, we have selected
fragmentation, mpshittype, protocol, vlan, port, fcoe
in filterMask so it is
mandatory to create a filter based on all of those tuples mentioned in filterMask. Otherwise, filter
rule will not honour.
iii. Now, to create a hash filter based on the filterMode and filterMask values selected above:
[root@host~]# cxgbtool eth18 filter 100 action drop lip 120.10.10.100 fip
120.10.10.200 lport 5001 fport 51549 proto 6 frag 0 matchtype 0 ivlan 10
iport 0 fcoe 0 hitcnts 1 cap maskless
Hash-Filter Index = 303760
•
When all tuples from filterMode are not enabled in filterMask:
In case if you don’t want to create filter rule based on any particular tuple from filterMode, don’t
select i
t in filterMask. For example, if you don’t want to create a filter based on VLAN value, then
don’t select it from filterMode to filterMask.
i. Select a filterMode from supported filterMode table based on your requirement. E.g.,
filterMode = fragmentation, mpshittype, protocol, vlan, port, fcoe
In case of Hash/DDR filters, source_ip, destination_ip, source_port and
destination_port are mandatory, since the filters don't support masks and hence,
4-tuple must always be supplied. Proto is also a mandatory parameter.
Note
Содержание Terminator 6
Страница 1: ...Chelsio Unified Wire for Linux i...
Страница 15: ...Chapter I Chelsio Unified Wire Chelsio Unified Wire for Linux 15 I Chelsio Unified Wire...
Страница 51: ...Chapter II Network NIC TOE Chelsio Unified Wire for Linux 51 II Network NIC TOE...
Страница 70: ...Chapter III Virtual Function Network vNIC Chelsio Unified Wire for Linux 70 III Virtual Function Network vNIC...
Страница 82: ...Chapter IV iWARP RDMA Chelsio Unified Wire for Linux 82 IV iWARP RDMA...
Страница 99: ...Chapter V iSER Chelsio Unified Wire for Linux 99 V iSER...
Страница 107: ...Chapter VI WD UDP Chelsio Unified Wire for Linux 107 VI WD UDP...
Страница 119: ...Chapter VII WD TOE Chelsio Unified Wire for Linux 119 VII WD TOE...
Страница 125: ...Chapter VIII NVMe oF Chelsio Unified Wire for Linux 125 VIII NVMe oF...
Страница 135: ...Chapter IX LIO iSCSI Target Offload Chelsio Unified Wire for Linux 135 IX LIO iSCSI Target Offload...
Страница 148: ...Chapter X iSCSI PDU Offload Target Chelsio Unified Wire for Linux 148 X iSCSI PDU Offload Target...
Страница 187: ...Chapter XI iSCSI PDU Offload Initiator Chelsio Unified Wire for Linux 187 XI iSCSI PDU Offload Initiator...
Страница 198: ...Chapter XII Crypto Offload Chelsio Unified Wire for Linux 198 XII Crypto Offload...
Страница 211: ...Chapter XIII Data Center Bridging DCB Chelsio Unified Wire for Linux 211 XIII Data Center Bridging DCB...
Страница 223: ...Chapter XIV FCoE Full Offload Initiator Chelsio Unified Wire for Linux 223 XIV FCoE Full Offload Initiator...
Страница 230: ...Chapter XIV FCoE Full Offload Initiator Chelsio Unified Wire for Linux 230...
Страница 235: ...Chapter XV Offload Bonding Chelsio Unified Wire for Linux 235 XV Offload Bonding...
Страница 258: ...Chapter XVIII Offload IPv6 Chelsio Unified Wire for Linux 258 XVIII Offload IPv6...
Страница 265: ...Chapter XIX WD Sniffing and Tracing Chelsio Unified Wire for Linux 265 XIX WD Sniffing and Tracing...
Страница 272: ...Chapter XX Classification and Filtering Chelsio Unified Wire for Linux 272 XX Classification and Filtering...
Страница 297: ...Chapter XXI OVS Kernel Datapath Offload Chelsio Unified Wire for Linux 297 XXI OVS Kernel Datapath Offload...
Страница 311: ...Chapter XXII Ring Backbone Chelsio Unified Wire for Linux 311 XXII Ring Backbone...
Страница 317: ...Chapter XXIII Traffic Management Chelsio Unified Wire for Linux 317 XXIII Traffic Management...
Страница 329: ...Chapter XXIV DPDK Driver Chelsio Unified Wire for Linux 329 XXIV DPDK Driver...
Страница 347: ...Chapter XXV Unified Boot Chelsio Unified Wire for Linux 347 XXV Unified Boot...
Страница 357: ...Chapter XXV Unified Boot Chelsio Unified Wire for Linux 357 iv Boot to EFI Shell...
Страница 427: ...Chapter XXVI Appendix A Chelsio Unified Wire for Linux 427 XXVI Appendix A...