
Chapter XX. Classification and Filtering
Chelsio Unified Wire for Linux
290
ii. Select a filterMask so that it is a subset of or equal to filterMode based on application
without VLAN tuple. E.g.;
filterMask = fragmentation, mpshittype, protocol, port, fcoe
Here, we have selected
fragmentation, mpshittype, protocol, port, fcoe
in filterMask so it is
mandatory to create a filter based on only 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@indus sw]# 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 iport 0
fcoe 0 hitcnts 1 cap maskless
Hash-Filter Index = 196568
Examples
•
drop action
[root@host~]# cxgbtool ethX filter 496 action drop lip 102.1.1.1 fip
102.1.1.2 lport 12865 fport 20000 hitcnts 1 cap maskless iport 1 proto 17
Hash-Filter Index = 61722
The above filter rule will drop all UDP packets matching above 4 tuple coming on Chelsio port 1.
Remaining packets will be sent to the host.
•
pass action
[root@host~]# cxgbtool ethX filter 496 action pass lip 102.2.2.1 fip
102.2.2.2 lport 12865 fport 12000 hitcnts 1 cap maskless proto 6
Hash-Filter Index = 308184
The above filter rule will pass all TCP packets matching above 4 tuple. Remaining packets will be
sent to the host.
•
switch action
[root@host~]# cxgbtool ethX filter 496 action switch lip 102.3.3.1 fip
102.3.3.2 lport 5001 fport 16000 iport 0 eport 1 hitcnts 1 cap maskless
Hash-Filter Index = 489090
Summary of Contents for Terminator 6
Page 1: ...Chelsio Unified Wire for Linux i...
Page 15: ...Chapter I Chelsio Unified Wire Chelsio Unified Wire for Linux 15 I Chelsio Unified Wire...
Page 51: ...Chapter II Network NIC TOE Chelsio Unified Wire for Linux 51 II Network NIC TOE...
Page 82: ...Chapter IV iWARP RDMA Chelsio Unified Wire for Linux 82 IV iWARP RDMA...
Page 99: ...Chapter V iSER Chelsio Unified Wire for Linux 99 V iSER...
Page 107: ...Chapter VI WD UDP Chelsio Unified Wire for Linux 107 VI WD UDP...
Page 119: ...Chapter VII WD TOE Chelsio Unified Wire for Linux 119 VII WD TOE...
Page 125: ...Chapter VIII NVMe oF Chelsio Unified Wire for Linux 125 VIII NVMe oF...
Page 198: ...Chapter XII Crypto Offload Chelsio Unified Wire for Linux 198 XII Crypto Offload...
Page 230: ...Chapter XIV FCoE Full Offload Initiator Chelsio Unified Wire for Linux 230...
Page 235: ...Chapter XV Offload Bonding Chelsio Unified Wire for Linux 235 XV Offload Bonding...
Page 258: ...Chapter XVIII Offload IPv6 Chelsio Unified Wire for Linux 258 XVIII Offload IPv6...
Page 311: ...Chapter XXII Ring Backbone Chelsio Unified Wire for Linux 311 XXII Ring Backbone...
Page 317: ...Chapter XXIII Traffic Management Chelsio Unified Wire for Linux 317 XXIII Traffic Management...
Page 329: ...Chapter XXIV DPDK Driver Chelsio Unified Wire for Linux 329 XXIV DPDK Driver...
Page 347: ...Chapter XXV Unified Boot Chelsio Unified Wire for Linux 347 XXV Unified Boot...
Page 357: ...Chapter XXV Unified Boot Chelsio Unified Wire for Linux 357 iv Boot to EFI Shell...
Page 427: ...Chapter XXVI Appendix A Chelsio Unified Wire for Linux 427 XXVI Appendix A...