aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorXie He <[email protected]>2020-09-23 11:18:18 -0700
committerDavid S. Miller <[email protected]>2020-09-24 19:52:58 -0700
commited46cd1d4cc4b2cf05f31fe25fc68d1a9d3589ba (patch)
treefdd000d2c4b68cd05b48a4c18a1569ccc8326edd /include/linux/fpga/fpga-bridge.h
parent02a1b175b0e92d9e0fa5df3957ade8d733ceb6a0 (diff)
drivers/net/wan/x25_asy: Correct the ndo_open and ndo_stop functions
1. Move the lapb_register/lapb_unregister calls into the ndo_open/ndo_stop functions. This makes the LAPB protocol start/stop when the network interface starts/stops. When the network interface is down, the LAPB protocol shouldn't be running and the LAPB module shoudn't be generating control frames. 2. Move netif_start_queue/netif_stop_queue into the ndo_open/ndo_stop functions. This makes the TX queue start/stop when the network interface starts/stops. (netif_stop_queue was originally in the ndo_stop function. But to make the code look better, I created a new function to use as ndo_stop, and made it call the original ndo_stop function. I moved netif_stop_queue from the original ndo_stop function to the new ndo_stop function.) Cc: Martin Schiller <[email protected]> Signed-off-by: Xie He <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions