aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-03-12 13:22:30 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-12 15:28:06 -0400
commitb779d0afccffaceda3169b3810faa23444f13b9e (patch)
tree80905b9606404a0fb24f96713655c793c1b4774d
parent184593c73439e82121702038d715b8f3ec9a86c9 (diff)
brocade: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index aeec9ccc0b39..cb7625366ec2 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -2845,13 +2845,11 @@ bnad_txq_wi_prepare(struct bnad *bnad, struct bna_tcb *tcb,
2845 } 2845 }
2846 if (unlikely((gso_size + skb_transport_offset(skb) + 2846 if (unlikely((gso_size + skb_transport_offset(skb) +
2847 tcp_hdrlen(skb)) >= skb->len)) { 2847 tcp_hdrlen(skb)) >= skb->len)) {
2848 txqent->hdr.wi.opcode = 2848 txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND);
2849 __constant_htons(BNA_TXQ_WI_SEND);
2850 txqent->hdr.wi.lso_mss = 0; 2849 txqent->hdr.wi.lso_mss = 0;
2851 BNAD_UPDATE_CTR(bnad, tx_skb_tso_too_short); 2850 BNAD_UPDATE_CTR(bnad, tx_skb_tso_too_short);
2852 } else { 2851 } else {
2853 txqent->hdr.wi.opcode = 2852 txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND_LSO);
2854 __constant_htons(BNA_TXQ_WI_SEND_LSO);
2855 txqent->hdr.wi.lso_mss = htons(gso_size); 2853 txqent->hdr.wi.lso_mss = htons(gso_size);
2856 } 2854 }
2857 2855
@@ -2865,7 +2863,7 @@ bnad_txq_wi_prepare(struct bnad *bnad, struct bna_tcb *tcb,
2865 htons(BNA_TXQ_WI_L4_HDR_N_OFFSET( 2863 htons(BNA_TXQ_WI_L4_HDR_N_OFFSET(
2866 tcp_hdrlen(skb) >> 2, skb_transport_offset(skb))); 2864 tcp_hdrlen(skb) >> 2, skb_transport_offset(skb)));
2867 } else { 2865 } else {
2868 txqent->hdr.wi.opcode = __constant_htons(BNA_TXQ_WI_SEND); 2866 txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND);
2869 txqent->hdr.wi.lso_mss = 0; 2867 txqent->hdr.wi.lso_mss = 0;
2870 2868
2871 if (unlikely(skb->len > (bnad->netdev->mtu + ETH_HLEN))) { 2869 if (unlikely(skb->len > (bnad->netdev->mtu + ETH_HLEN))) {
@@ -2876,11 +2874,10 @@ bnad_txq_wi_prepare(struct bnad *bnad, struct bna_tcb *tcb,
2876 if (skb->ip_summed == CHECKSUM_PARTIAL) { 2874 if (skb->ip_summed == CHECKSUM_PARTIAL) {
2877 u8 proto = 0; 2875 u8 proto = 0;
2878 2876
2879 if (skb->protocol == __constant_htons(ETH_P_IP)) 2877 if (skb->protocol == htons(ETH_P_IP))
2880 proto = ip_hdr(skb)->protocol; 2878 proto = ip_hdr(skb)->protocol;
2881#ifdef NETIF_F_IPV6_CSUM 2879#ifdef NETIF_F_IPV6_CSUM
2882 else if (skb->protocol == 2880 else if (skb->protocol == htons(ETH_P_IPV6)) {
2883 __constant_htons(ETH_P_IPV6)) {
2884 /* nexthdr may not be TCP immediately. */ 2881 /* nexthdr may not be TCP immediately. */
2885 proto = ipv6_hdr(skb)->nexthdr; 2882 proto = ipv6_hdr(skb)->nexthdr;
2886 } 2883 }
@@ -3062,8 +3059,7 @@ bnad_start_xmit(struct sk_buff *skb, struct net_device *netdev)
3062 vect_id = 0; 3059 vect_id = 0;
3063 BNA_QE_INDX_INC(prod, q_depth); 3060 BNA_QE_INDX_INC(prod, q_depth);
3064 txqent = &((struct bna_txq_entry *)tcb->sw_q)[prod]; 3061 txqent = &((struct bna_txq_entry *)tcb->sw_q)[prod];
3065 txqent->hdr.wi_ext.opcode = 3062 txqent->hdr.wi_ext.opcode = htons(BNA_TXQ_WI_EXTENSION);
3066 __constant_htons(BNA_TXQ_WI_EXTENSION);
3067 unmap = &unmap_q[prod]; 3063 unmap = &unmap_q[prod];
3068 } 3064 }
3069 3065