diff options
author | Bailey Forrest <bcf@google.com> | 2021-06-24 21:06:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-24 22:47:37 +0300 |
commit | c4b87ac87635879ecf0d26807dc00df9bb7eb508 (patch) | |
tree | 0877f05da7446d744ec16edaa039ee41c97b94f2 /drivers/net/vrf.c | |
parent | 5ca2265eefc0bdfc80d4cbe9f70a81c40c41ae60 (diff) | |
download | linux-c4b87ac87635879ecf0d26807dc00df9bb7eb508.tar.xz |
gve: Add support for DQO RX PTYPE map
Unlike GQI, DQO RX descriptors do not contain the L3 and L4 type of the
packet. L3 and L4 types are necessary in order to set the hash and csum
on RX SKBs correctly.
DQO RX descriptors instead contain a 10 bit PTYPE index. The PTYPE map
enables the device to tell the driver how to map from PTYPE index to
L3/L4 type.
The device doesn't provide any guarantees about the range of possible
PTYPEs, so we just use a 1024 entry array to implement a fast mapping
structure.
Signed-off-by: Bailey Forrest <bcf@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vrf.c')
0 files changed, 0 insertions, 0 deletions