diff options
| author | Arik Nemtsov <arik@wizery.com> | 2012-05-10 12:13:28 +0300 |
|---|---|---|
| committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 15:55:23 +0300 |
| commit | 169da04f523bafee46993b1efbddb913641aad56 (patch) | |
| tree | 999b7a797dd977f2665556ab9ec433e2a46b4fbd /drivers/net/wireless/ti/wlcore/hw_ops.h | |
| parent | wlcore/wl18xx: add hw op for setting Tx HW checksum (diff) | |
| download | linux-169da04f523bafee46993b1efbddb913641aad56.tar.gz linux-169da04f523bafee46993b1efbddb913641aad56.zip | |
wlcore/wl18xx: add hw op for Rx HW checksum
Some chip families can checksum certain classes of Rx packets in FW.
Implement the Rx-checksum feature as a HW-op. For the 18xx chip-family,
set Rx-checsum according to indication from FW.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/hw_ops.h')
| -rw-r--r-- | drivers/net/wireless/ti/wlcore/hw_ops.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/hw_ops.h b/drivers/net/wireless/ti/wlcore/hw_ops.h index 4573249ea89f..80f3d75ceddf 100644 --- a/drivers/net/wireless/ti/wlcore/hw_ops.h +++ b/drivers/net/wireless/ti/wlcore/hw_ops.h @@ -130,4 +130,13 @@ wlcore_hw_set_tx_desc_csum(struct wl1271 *wl, wl->ops->set_tx_desc_csum(wl, desc, skb); } +static inline void +wlcore_hw_set_rx_csum(struct wl1271 *wl, + struct wl1271_rx_descriptor *desc, + struct sk_buff *skb) +{ + if (wl->ops->set_rx_csum) + wl->ops->set_rx_csum(wl, desc, skb); +} + #endif |
