diff options
author | Joe Perches <joe@perches.com> | 2014-03-13 01:19:14 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-03-20 01:18:48 -0400 |
commit | 7c4d16ffb79540dd157efe1eaebfa513f0ebdd9b (patch) | |
tree | 69307de1c2703e95914e321b43b8c87e7e960e97 | |
parent | 3d2372eb146efdd9a31ac29cdfc9812fad4faa67 (diff) |
igb: Convert uses of __constant_<foo> to <foo>
The use of __constant_<foo> has been unnecessary for quite awhile now.
Make these uses consistent with the rest of the kernel.
Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 313e1a87ea9f..17feea0ea2b0 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -4592,7 +4592,7 @@ static int igb_tso(struct igb_ring *tx_ring, | |||
4592 | /* ADV DTYP TUCMD MKRLOC/ISCSIHEDLEN */ | 4592 | /* ADV DTYP TUCMD MKRLOC/ISCSIHEDLEN */ |
4593 | type_tucmd = E1000_ADVTXD_TUCMD_L4T_TCP; | 4593 | type_tucmd = E1000_ADVTXD_TUCMD_L4T_TCP; |
4594 | 4594 | ||
4595 | if (first->protocol == __constant_htons(ETH_P_IP)) { | 4595 | if (first->protocol == htons(ETH_P_IP)) { |
4596 | struct iphdr *iph = ip_hdr(skb); | 4596 | struct iphdr *iph = ip_hdr(skb); |
4597 | iph->tot_len = 0; | 4597 | iph->tot_len = 0; |
4598 | iph->check = 0; | 4598 | iph->check = 0; |
@@ -4648,12 +4648,12 @@ static void igb_tx_csum(struct igb_ring *tx_ring, struct igb_tx_buffer *first) | |||
4648 | } else { | 4648 | } else { |
4649 | u8 l4_hdr = 0; | 4649 | u8 l4_hdr = 0; |
4650 | switch (first->protocol) { | 4650 | switch (first->protocol) { |
4651 | case __constant_htons(ETH_P_IP): | 4651 | case htons(ETH_P_IP): |
4652 | vlan_macip_lens |= skb_network_header_len(skb); | 4652 | vlan_macip_lens |= skb_network_header_len(skb); |
4653 | type_tucmd |= E1000_ADVTXD_TUCMD_IPV4; | 4653 | type_tucmd |= E1000_ADVTXD_TUCMD_IPV4; |
4654 | l4_hdr = ip_hdr(skb)->protocol; | 4654 | l4_hdr = ip_hdr(skb)->protocol; |
4655 | break; | 4655 | break; |
4656 | case __constant_htons(ETH_P_IPV6): | 4656 | case htons(ETH_P_IPV6): |
4657 | vlan_macip_lens |= skb_network_header_len(skb); | 4657 | vlan_macip_lens |= skb_network_header_len(skb); |
4658 | l4_hdr = ipv6_hdr(skb)->nexthdr; | 4658 | l4_hdr = ipv6_hdr(skb)->nexthdr; |
4659 | break; | 4659 | break; |
@@ -6738,7 +6738,7 @@ static unsigned int igb_get_headlen(unsigned char *data, | |||
6738 | hdr.network += ETH_HLEN; | 6738 | hdr.network += ETH_HLEN; |
6739 | 6739 | ||
6740 | /* handle any vlan tag if present */ | 6740 | /* handle any vlan tag if present */ |
6741 | if (protocol == __constant_htons(ETH_P_8021Q)) { | 6741 | if (protocol == htons(ETH_P_8021Q)) { |
6742 | if ((hdr.network - data) > (max_len - VLAN_HLEN)) | 6742 | if ((hdr.network - data) > (max_len - VLAN_HLEN)) |
6743 | return max_len; | 6743 | return max_len; |
6744 | 6744 | ||
@@ -6747,7 +6747,7 @@ static unsigned int igb_get_headlen(unsigned char *data, | |||
6747 | } | 6747 | } |
6748 | 6748 | ||
6749 | /* handle L3 protocols */ | 6749 | /* handle L3 protocols */ |
6750 | if (protocol == __constant_htons(ETH_P_IP)) { | 6750 | if (protocol == htons(ETH_P_IP)) { |
6751 | if ((hdr.network - data) > (max_len - sizeof(struct iphdr))) | 6751 | if ((hdr.network - data) > (max_len - sizeof(struct iphdr))) |
6752 | return max_len; | 6752 | return max_len; |
6753 | 6753 | ||
@@ -6761,7 +6761,7 @@ static unsigned int igb_get_headlen(unsigned char *data, | |||
6761 | /* record next protocol if header is present */ | 6761 | /* record next protocol if header is present */ |
6762 | if (!(hdr.ipv4->frag_off & htons(IP_OFFSET))) | 6762 | if (!(hdr.ipv4->frag_off & htons(IP_OFFSET))) |
6763 | nexthdr = hdr.ipv4->protocol; | 6763 | nexthdr = hdr.ipv4->protocol; |
6764 | } else if (protocol == __constant_htons(ETH_P_IPV6)) { | 6764 | } else if (protocol == htons(ETH_P_IPV6)) { |
6765 | if ((hdr.network - data) > (max_len - sizeof(struct ipv6hdr))) | 6765 | if ((hdr.network - data) > (max_len - sizeof(struct ipv6hdr))) |
6766 | return max_len; | 6766 | return max_len; |
6767 | 6767 | ||