diff options
author | David L Stevens <david.stevens@oracle.com> | 2014-12-02 15:31:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-08 21:18:29 -0500 |
commit | 6d0ba919915f0117a651a1fb732f48529b2c4091 (patch) | |
tree | 5eb14d5137e6419774554770042685e6acf60b5b /arch/sparc | |
parent | d6732489f079ff65f8ea551392ccae469cba4653 (diff) |
sunvnet: add VIO v1.7 and v1.8 support
This patch adds support for VIO v1.7 (extended descriptor format)
and v1.8 (receive-side checksumming) to the sunvnet driver.
Signed-off-by: David L Stevens <david.stevens@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/vio.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/vio.h b/arch/sparc/include/asm/vio.h index d758c8d8f47d..fb124feb363b 100644 --- a/arch/sparc/include/asm/vio.h +++ b/arch/sparc/include/asm/vio.h | |||
@@ -247,6 +247,25 @@ struct vio_net_desc { | |||
247 | struct ldc_trans_cookie cookies[0]; | 247 | struct ldc_trans_cookie cookies[0]; |
248 | }; | 248 | }; |
249 | 249 | ||
250 | struct vio_net_dext { | ||
251 | u8 flags; | ||
252 | #define VNET_PKT_HASH 0x01 | ||
253 | #define VNET_PKT_HCK_IPV4_HDRCKSUM 0x02 | ||
254 | #define VNET_PKT_HCK_FULLCKSUM 0x04 | ||
255 | #define VNET_PKT_IPV4_LSO 0x08 | ||
256 | #define VNET_PKT_HCK_IPV4_HDRCKSUM_OK 0x10 | ||
257 | #define VNET_PKT_HCK_FULLCKSUM_OK 0x20 | ||
258 | |||
259 | u8 vnet_hashval; | ||
260 | u16 ipv4_lso_mss; | ||
261 | u32 resv3; | ||
262 | }; | ||
263 | |||
264 | static inline struct vio_net_dext *vio_net_ext(struct vio_net_desc *desc) | ||
265 | { | ||
266 | return (struct vio_net_dext *)&desc->cookies[2]; | ||
267 | } | ||
268 | |||
250 | #define VIO_MAX_RING_COOKIES 24 | 269 | #define VIO_MAX_RING_COOKIES 24 |
251 | 270 | ||
252 | struct vio_dring_state { | 271 | struct vio_dring_state { |