From d939a8cb493a6bed7faac4dd26d43f5bcee8c270 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Tue, 19 Feb 2019 12:43:59 +0530 Subject: [PATCH] Add a vendor attribute for specifying ethernet protocol type This new QCA vendor attribute adds provision to specify the ethernet protocol id from userspace to the packets which are offloaded to the driver/firmware (e.g., IPv4, IPv6). Signed-off-by: Arun Kumar Khandavalli --- src/common/qca-vendor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 56e4acd16..27ed03b81 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -4908,6 +4908,10 @@ enum qca_wlan_vendor_attr_offloaded_packets { QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, /* Unsigned 32-bit value, in milli seconds */ QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, + /* This optional unsigned 16-bit attribute is used for specifying + * ethernet protocol type. If not specified ethertype defaults to IPv4. + */ + QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, /* keep last */ QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,