summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorBailey Forrest <bcf@google.com>2021-06-24 21:06:24 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-24 22:47:37 +0300
commitc4b87ac87635879ecf0d26807dc00df9bb7eb508 (patch)
tree0877f05da7446d744ec16edaa039ee41c97b94f2 /drivers/hwmon
parent5ca2265eefc0bdfc80d4cbe9f70a81c40c41ae60 (diff)
downloadlinux-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/hwmon')
0 files changed, 0 insertions, 0 deletions