aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMika Westerberg <[email protected]>2017-10-02 13:38:41 +0300
committerDavid S. Miller <[email protected]>2017-10-02 11:24:41 -0700
commit4ffe722eefcb07c76701f03e0d759fbaecedf79f (patch)
tree08f0584d8bf1537616f64b8ee73ac40dccce6034 /net/switchdev/switchdev.c
parent59120e06101db72442acf4c8b364a0c76d8faa68 (diff)
thunderbolt: Add polling mode for rings
In order to support things like networking over Thunderbolt cable, there needs to be a way to switch the ring to a mode where it can be polled with the interrupt masked. We implement such mode so that the caller can allocate a ring by passing pointer to a function that is then called when an interrupt is triggered. Completed frames can be fetched using tb_ring_poll() and the interrupt can be re-enabled when the caller is finished with polling by using tb_ring_poll_complete(). Signed-off-by: Mika Westerberg <[email protected]> Reviewed-by: Michael Jamet <[email protected]> Reviewed-by: Yehezkel Bernat <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions