diff options
Diffstat (limited to 'drivers/net/ethernet/realtek')
-rw-r--r-- | drivers/net/ethernet/realtek/8139cp.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c index 9c31e46d1eee..d79e33b3c191 100644 --- a/drivers/net/ethernet/realtek/8139cp.c +++ b/drivers/net/ethernet/realtek/8139cp.c | |||
@@ -708,8 +708,8 @@ static void cp_tx (struct cp_private *cp) | |||
708 | 708 | ||
709 | static inline u32 cp_tx_vlan_tag(struct sk_buff *skb) | 709 | static inline u32 cp_tx_vlan_tag(struct sk_buff *skb) |
710 | { | 710 | { |
711 | return vlan_tx_tag_present(skb) ? | 711 | return skb_vlan_tag_present(skb) ? |
712 | TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00; | 712 | TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00; |
713 | } | 713 | } |
714 | 714 | ||
715 | static void unwind_tx_frag_mapping(struct cp_private *cp, struct sk_buff *skb, | 715 | static void unwind_tx_frag_mapping(struct cp_private *cp, struct sk_buff *skb, |
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 3a280598a15a..cd286b0356ab 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c | |||
@@ -2073,8 +2073,8 @@ static int rtl8169_set_features(struct net_device *dev, | |||
2073 | 2073 | ||
2074 | static inline u32 rtl8169_tx_vlan_tag(struct sk_buff *skb) | 2074 | static inline u32 rtl8169_tx_vlan_tag(struct sk_buff *skb) |
2075 | { | 2075 | { |
2076 | return (vlan_tx_tag_present(skb)) ? | 2076 | return (skb_vlan_tag_present(skb)) ? |
2077 | TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00; | 2077 | TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00; |
2078 | } | 2078 | } |
2079 | 2079 | ||
2080 | static void rtl8169_rx_vlan_tag(struct RxDesc *desc, struct sk_buff *skb) | 2080 | static void rtl8169_rx_vlan_tag(struct RxDesc *desc, struct sk_buff *skb) |