mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
atl1e: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Chris Snook <chris.snook@gmail.com> Cc: Jay Cliburn <jcliburn@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0f5c113c5a
commit
d8e4435e16
@ -1641,17 +1641,17 @@ static u16 atl1e_cal_tdp_req(const struct sk_buff *skb)
|
|||||||
static int atl1e_tso_csum(struct atl1e_adapter *adapter,
|
static int atl1e_tso_csum(struct atl1e_adapter *adapter,
|
||||||
struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
|
struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
|
||||||
{
|
{
|
||||||
|
unsigned short offload_type;
|
||||||
u8 hdr_len;
|
u8 hdr_len;
|
||||||
u32 real_len;
|
u32 real_len;
|
||||||
unsigned short offload_type;
|
|
||||||
int err;
|
|
||||||
|
|
||||||
if (skb_is_gso(skb)) {
|
if (skb_is_gso(skb)) {
|
||||||
if (skb_header_cloned(skb)) {
|
int err;
|
||||||
err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC);
|
|
||||||
if (unlikely(err))
|
err = skb_cow_head(skb, 0);
|
||||||
return -1;
|
if (err < 0)
|
||||||
}
|
return err;
|
||||||
|
|
||||||
offload_type = skb_shinfo(skb)->gso_type;
|
offload_type = skb_shinfo(skb)->gso_type;
|
||||||
|
|
||||||
if (offload_type & SKB_GSO_TCPV4) {
|
if (offload_type & SKB_GSO_TCPV4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user