aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMika Westerberg <[email protected]>2017-10-02 13:38:43 +0300
committerDavid S. Miller <[email protected]>2017-10-02 11:24:41 -0700
commit9a01c7c26cf7cbd1f58d06319e798833e85ff550 (patch)
tree625bedcec2f68c641e98b36afa510e5467a88f3f /net/switchdev/switchdev.c
parent3304559e353f098d7e0ed5ca981e26c406513e12 (diff)
thunderbolt: Allocate ring HopID automatically if requested
Thunderbolt services should not care which HopID (ring) they use for sending and receiving packets over the high-speed DMA path, so make tb_ring_alloc_rx() and tb_ring_alloc_tx() accept negative HopID. This means that the NHI will allocate next available HopID for the caller automatically. These HopIDs will be allocated from the range which is not reserved for the Thunderbolt protocol (8 .. hop_count - 1). The allocated HopID can be retrieved from ring->hop field after the ring has been allocated successfully if needed. 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