1
0
Fork 0
alistair23-linux/drivers/net/ethernet/marvell/mvpp2
Maxime Chevallier b1a962c62c net: mvpp2: use classifier to assign default rx queue
The PPv2 Controller has a classifier, that can perform multiple lookup
operations for each packet, using different engines.

One of these engines is the C2 engine, which performs TCAM based lookups
on data extracted from the packet header. When a packet matches an
entry, the engine sets various attributes, used to perform
classification operations.

One of these attributes is the rx queue in which the packet should be sent.
The current code uses the lookup_id table (also called decoding table)
to assign the rx queue. However, this only works if we use one entry per
port in the decoding table, which won't be the case once we add RSS
lookups.

This patch uses the C2 engine to assign the rx queue to each packet.

The C2 engine is used through the flow table, which dictates what
classification operations are done for a given flow.

Right now, we have one flow per port, which contains every ingress
packet for this port.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-07-12 17:30:49 -07:00
..
Makefile net: mvpp2: Split the PPv2 driver to a dedicated directory 2018-06-01 11:29:35 -04:00
mvpp2.h net: mvpp2: use classifier to assign default rx queue 2018-07-12 17:30:49 -07:00
mvpp2_cls.c net: mvpp2: use classifier to assign default rx queue 2018-07-12 17:30:49 -07:00
mvpp2_cls.h net: mvpp2: use classifier to assign default rx queue 2018-07-12 17:30:49 -07:00
mvpp2_main.c net: mvpp2: rename per-port RSS init function 2018-07-12 17:30:48 -07:00
mvpp2_prs.c net: mvpp2: prs: Drop unnecessary swab16 in vlan detection 2018-06-30 18:54:09 +09:00
mvpp2_prs.h net: mvpp2: fix include guards in mvpp2_prs.h 2018-07-12 17:30:47 -07:00