netif.h: Add IPv6 related changes
PATCH 1/1 netif.h: Add IPv6 related changes
My recent patch series to Linux netback added IPv6 checksum offload and GSO support. This involved making some changes to the copy of netif.h in Linux.
This patch adds those changes to the canonical copy of netif.h.
Signed-off-by Paul Durrant <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>
--- xen/include/public/io/netif.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
xen/include/public/io/netif.h +17 -1
@@ -69,6 +69,20 @@*/ /* +* "feature-no-csum-offload" should be used to turn IPv4 TCP/UDP checksum +* offload off or on. If it is missing then the feature is assumed to be on. +* "feature-ipv6-csum-offload" should be used to turn IPv6 TCP/UDP checksum +* offload on or off. If it is missing then the feature is assumed to be off. +*/ + +/* +* "feature-gso-tcpv4" and "feature-gso-tcpv6" advertise the capability to +* handle large TCP packets (in IPv4 or IPv6 form respectively). Neither +* frontends nor backends are assumed to be capable unless the flags are +* present. +*/ + +/* * This is the 'wire' format for packets: * Request 1: netif_tx_request -- NETTXF_* (any flags) * [Request 2: netif_tx_extra] (only if request 1 has NETTXF_extra_info)
@@ -116,8 +130,10 @@ typedef struct netif_tx_request netif_tx_request_t;#define _XEN_NETIF_EXTRA_FLAG_MORE (0)#define XEN_NETIF_EXTRA_FLAG_MORE (1U<<_XEN_NETIF_EXTRA_FLAG_MORE) -/* GSO types - only TCPv4 currently supported. */ +/* GSO types */ +#define XEN_NETIF_GSO_TYPE_NONE (0)#define XEN_NETIF_GSO_TYPE_TCPV4 (1) +#define XEN_NETIF_GSO_TYPE_TCPV6 (2)/* * This structure needs to fit within both netif_tx_request and
Signature · 1 line
1.7.10.4
Quoted 8 lines · Paul Durrant
My recent patch series to Linux netback added IPv6 checksum offload and GSO support. This involved making some changes to the copy of
netif.hin Linux.
This patch adds those changes to the canonical copy ofnetif.h.Signed-off-by Paul Durrant <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>
Acked-by Wei Liu <[email protected]>
Quoted 43 lines
--- xen/include/public/io/netif.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)xen/include/public/io/netif.h +17
-1@@ -69,6 +69,20 @@*/ /* +* "feature-no-csum-offload" should be used to turn IPv4 TCP/UDP checksum +* offload off or on. If it is missing then the feature is assumed to be on. +* "feature-ipv6-csum-offload" should be used to turn IPv6 TCP/UDP checksum +* offload on or off. If it is missing then the feature is assumed to be off. +*/ + +/* +* "feature-gso-tcpv4" and "feature-gso-tcpv6" advertise the capability to +* handle large TCP packets (in IPv4 or IPv6 form respectively). Neither +* frontends nor backends are assumed to be capable unless the flags are +* present. +*/ + +/* * This is the 'wire' format for packets: * Request 1: netif_tx_request -- NETTXF_* (any flags) * [Request 2: netif_tx_extra] (only if request 1 has NETTXF_extra_info) @@ -116,8 +130,10 @@ typedef struct netif_tx_request netif_tx_request_t;#define _XEN_NETIF_EXTRA_FLAG_MORE (0)#define XEN_NETIF_EXTRA_FLAG_MORE (1U<<_XEN_NETIF_EXTRA_FLAG_MORE) -/* GSO types - only TCPv4 currently supported. */ +/* GSO types */ +#define XEN_NETIF_GSO_TYPE_NONE (0)#define XEN_NETIF_GSO_TYPE_TCPV4 (1) +#define XEN_NETIF_GSO_TYPE_TCPV6 (2)/* * This structure needs to fit within both netif_tx_request and Signature · 1 line
1.7.10.4
Quoted 11 lines · Wei Liu
Quoted 8 lines · Paul Durrant
My recent patch series to Linux netback added IPv6 checksum offload and GSO support. This involved making some changes to the copy of
netif.hin Linux.
This patch adds those changes to the canonical copy ofnetif.h.Signed-off-by Paul Durrant <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>Acked-by Wei Liu <[email protected]>
Me too and applied, thanks.