net/cxgbe: parse and validate flows
authorShagun Agrawal <shaguna@chelsio.com>
Fri, 8 Jun 2018 17:58:12 +0000 (23:28 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commitee61f5113b170b3b7742c7060c7e9cef6f5bc6ca
treee8e1249d80211fba31683004d84044113fe3b89d
parent6f2a064bef93057f508c5e81bcfeb8d637ae0baa
net/cxgbe: parse and validate flows

Introduce rte_flow skeleton and implement validate operation.

Parse and convert <item>, <action>, <attributes> into hardware
specification. Perform validation, including basic sanity tests
and underlying device's supported filter capability checks.

Currently add support for:
<item>: IPv4, IPv6, TCP, and UDP.
<action>: Drop, Queue, and Count.

Also add sanity checks to ensure filters are created at specified
index in LE-TCAM region. The index in LE-TCAM region indicates
the filter rule's priority with index 0 having the highest priority.
If no index is specified, filters are created at closest available
free index.

Signed-off-by: Shagun Agrawal <shaguna@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
doc/guides/nics/cxgbe.rst
doc/guides/nics/features/cxgbe.ini
doc/guides/rel_notes/release_18_08.rst
drivers/net/cxgbe/Makefile
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/cxgbe/cxgbe_filter.c [new file with mode: 0644]
drivers/net/cxgbe/cxgbe_filter.h
drivers/net/cxgbe/cxgbe_flow.c [new file with mode: 0644]
drivers/net/cxgbe/cxgbe_flow.h [new file with mode: 0644]