diff options
author | Karicheri, Muralidharan <m-karicheri2@ti.com> | 2017-01-06 15:37:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-07 21:03:50 -0500 |
commit | 69d707d034b6078f0b5998f80e5883c8243b205c (patch) | |
tree | c2acdf0460f7930f8769568f78ec6796a02d41dc /drivers/net/ethernet/ti/netcp.h | |
parent | Merge branch 'cpsw-cpdma-DDR' (diff) | |
download | linux-dev-69d707d034b6078f0b5998f80e5883c8243b205c.tar.xz linux-dev-69d707d034b6078f0b5998f80e5883c8243b205c.zip |
net: netcp: extract eflag from desc for rx_hook handling
Extract the eflag bits from the received desc and pass it down
the rx_hook chain to be available for netcp modules. Also the
psdata and epib data has to be inspected by the netcp modules.
So the desc can be freed only after returning from the rx_hook.
So move knav_pool_desc_put() after the rx_hook processing.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/netcp.h')
-rw-r--r-- | drivers/net/ethernet/ti/netcp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/netcp.h b/drivers/net/ethernet/ti/netcp.h index 0f58c584ae09..a92abd62ec60 100644 --- a/drivers/net/ethernet/ti/netcp.h +++ b/drivers/net/ethernet/ti/netcp.h @@ -115,6 +115,7 @@ struct netcp_packet { struct sk_buff *skb; __le32 *epib; u32 *psdata; + u32 eflags; unsigned int psdata_len; struct netcp_intf *netcp; struct netcp_tx_pipe *tx_pipe; |