summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c
index 4f069ce..daa75cf 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c
@@ -578,21 +578,14 @@ void __hot _dpa_rx(struct net_device *net_dev,
if (likely(fd->format == qm_fd_contig)) {
#if defined(CONFIG_AS_FASTPATH) || defined(CONFIG_FSL_FMAN_TEST)
-#if defined(CONFIG_AS_FASTPATH) && !defined(CONFIG_FSL_DPAA_ETH_JUMBO_FRAME)
- /* Do not allow Jumbo packet to ASF */
- if (likely(fd->length20 <= 1514)) {
-#endif
- /* Execute the Rx processing hook, if it exists. */
- if (dpaa_eth_hooks.rx_default &&
- dpaa_eth_hooks.rx_default((void *)fd, net_dev,
- fqid) == DPAA_ETH_STOLEN) {
- /* won't count the rx bytes in */
- return;
- }
-#if defined(CONFIG_AS_FASTPATH) && !defined(CONFIG_FSL_DPAA_ETH_JUMBO_FRAME)
+ /* Execute the Rx processing hook, if it exists. */
+ if (dpaa_eth_hooks.rx_default &&
+ dpaa_eth_hooks.rx_default((void *)fd, net_dev,
+ fqid) == DPAA_ETH_STOLEN) {
+ /* won't count the rx bytes in */
+ return;
}
#endif
-#endif
skb = contig_fd_to_skb(priv, fd, &use_gro);
} else
skb = sg_fd_to_skb(priv, fd, &use_gro, count_ptr);