Re: [PATCH net-next v3] cadence: Add LSO support.

2016-11-07 Thread David Miller
From: Rafal Ozieblo Date: Fri, 4 Nov 2016 11:40:18 + > + if (IPPROTO_UDP == (((struct iphdr > *)skb_network_header(skb))->protocol)) This is simply "ip_hdr(skb)->protocol", please use it everywhere you have this ugly cast thing in this change. Thanks.

Re: [PATCH net-next v3] cadence: Add LSO support.

2016-11-07 Thread David Miller
From: Rafal Ozieblo Date: Fri, 4 Nov 2016 11:40:18 + > + if (IPPROTO_UDP == (((struct iphdr > *)skb_network_header(skb))->protocol)) This is simply "ip_hdr(skb)->protocol", please use it everywhere you have this ugly cast thing in this change. Thanks.

[PATCH net-next v3] cadence: Add LSO support.

2016-11-04 Thread Rafal Ozieblo
New Cadence GEM hardware support Large Segment Offload (LSO): TCP segmentation offload (TSO) as well as UDP fragmentation offload (UFO). Support for those features was added to the driver. Signed-off-by: Rafal Ozieblo --- Changed in v2: macb_lso_check_compatibility() changed

[PATCH net-next v3] cadence: Add LSO support.

2016-11-04 Thread Rafal Ozieblo
New Cadence GEM hardware support Large Segment Offload (LSO): TCP segmentation offload (TSO) as well as UDP fragmentation offload (UFO). Support for those features was added to the driver. Signed-off-by: Rafal Ozieblo --- Changed in v2: macb_lso_check_compatibility() changed to