Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
The only slightly tricky merge conflict was the netdevsim because the mutex locking fix overlapped a lot of driver reload reorganization. The rest were (relatively) trivial in nature. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -730,6 +730,18 @@ static netdev_tx_t ftgmac100_hard_start_xmit(struct sk_buff *skb,
|
||||
*/
|
||||
nfrags = skb_shinfo(skb)->nr_frags;
|
||||
|
||||
/* Setup HW checksumming */
|
||||
csum_vlan = 0;
|
||||
if (skb->ip_summed == CHECKSUM_PARTIAL &&
|
||||
!ftgmac100_prep_tx_csum(skb, &csum_vlan))
|
||||
goto drop;
|
||||
|
||||
/* Add VLAN tag */
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
csum_vlan |= FTGMAC100_TXDES1_INS_VLANTAG;
|
||||
csum_vlan |= skb_vlan_tag_get(skb) & 0xffff;
|
||||
}
|
||||
|
||||
/* Get header len */
|
||||
len = skb_headlen(skb);
|
||||
|
||||
@@ -756,19 +768,6 @@ static netdev_tx_t ftgmac100_hard_start_xmit(struct sk_buff *skb,
|
||||
if (nfrags == 0)
|
||||
f_ctl_stat |= FTGMAC100_TXDES0_LTS;
|
||||
txdes->txdes3 = cpu_to_le32(map);
|
||||
|
||||
/* Setup HW checksumming */
|
||||
csum_vlan = 0;
|
||||
if (skb->ip_summed == CHECKSUM_PARTIAL &&
|
||||
!ftgmac100_prep_tx_csum(skb, &csum_vlan))
|
||||
goto drop;
|
||||
|
||||
/* Add VLAN tag */
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
csum_vlan |= FTGMAC100_TXDES1_INS_VLANTAG;
|
||||
csum_vlan |= skb_vlan_tag_get(skb) & 0xffff;
|
||||
}
|
||||
|
||||
txdes->txdes1 = cpu_to_le32(csum_vlan);
|
||||
|
||||
/* Next descriptor */
|
||||
|
Reference in New Issue
Block a user