diff options
author | Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> | 2014-10-02 08:04:18 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2015-03-11 16:19:13 (GMT) |
commit | d5c643edcf1a9150e2bc77b5443c84373aec0d81 (patch) | |
tree | 594c7e58519af3e7db08e2645b2d3162a6467dc3 | |
parent | c76e9efc1f81b8bcc6cf47407e30b323b928ef9d (diff) | |
download | linux-fsl-qoriq-d5c643edcf1a9150e2bc77b5443c84373aec0d81.tar.xz |
dpaa_eth: remove unnecessary operation for onic
Protocol and nexthdr, variables from ipv4 and ipv6 layers, are 1 byte long,
therefore no byte order conversion is needed.
Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com>
Change-Id: Ibaa4da641b2eeb29c8186aac9714b154eee5ab13
Reviewed-on: http://git.am.freescale.net:8181/20908
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/32488
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c index 2ed90c8..f78e176 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c @@ -529,13 +529,13 @@ static int dpa_generic_tx_csum(struct dpa_generic_priv_s *priv, parse_result->l3r = FM_L3_PARSE_RESULT_IPV4; iph = ip_hdr(skb); BUG_ON(iph == NULL); - l4_proto = ntohs(iph->protocol); + l4_proto = iph->protocol; break; case ETH_P_IPV6: parse_result->l3r = FM_L3_PARSE_RESULT_IPV6; ipv6h = ipv6_hdr(skb); BUG_ON(ipv6h == NULL); - l4_proto = ntohs(ipv6h->nexthdr); + l4_proto = ipv6h->nexthdr; break; default: /* We shouldn't even be here */ |