Commit fbf557d
net: bcmgenet: cleanup ring interrupt masking and unmasking
Since the NAPI interrupts are basically ignored when NAPI is
disabled we don't need to mask them within the functions
bcmgenet_disable_tx_napi() and bcmgenet_disable_rx_napi().
So wait until all NAPI instances are disabled and mask all of the
bcmgenet driver interrupts together in bcmgenet_netif_stop().
The interrupts can still be enabled in the functions
bcmgenet_enable_tx_napi() and bcmgenet_enable_rx_napi(), but use
the ring context int_enable() method to keep the functionality
consistent and the code cleaner.
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 7587935 commit fbf557d
1 file changed
+5
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2147 | 2147 | | |
2148 | 2148 | | |
2149 | 2149 | | |
2150 | | - | |
2151 | | - | |
2152 | 2150 | | |
2153 | 2151 | | |
2154 | 2152 | | |
2155 | 2153 | | |
2156 | 2154 | | |
2157 | | - | |
| 2155 | + | |
2158 | 2156 | | |
2159 | 2157 | | |
2160 | 2158 | | |
2161 | 2159 | | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
| 2160 | + | |
2165 | 2161 | | |
2166 | 2162 | | |
2167 | 2163 | | |
2168 | 2164 | | |
2169 | 2165 | | |
2170 | | - | |
2171 | | - | |
2172 | 2166 | | |
2173 | 2167 | | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | 2168 | | |
2178 | 2169 | | |
2179 | 2170 | | |
| |||
2269 | 2260 | | |
2270 | 2261 | | |
2271 | 2262 | | |
2272 | | - | |
2273 | | - | |
2274 | 2263 | | |
2275 | 2264 | | |
2276 | 2265 | | |
2277 | 2266 | | |
2278 | 2267 | | |
2279 | | - | |
| 2268 | + | |
2280 | 2269 | | |
2281 | 2270 | | |
2282 | 2271 | | |
2283 | 2272 | | |
2284 | | - | |
2285 | | - | |
2286 | | - | |
| 2273 | + | |
2287 | 2274 | | |
2288 | 2275 | | |
2289 | 2276 | | |
2290 | 2277 | | |
2291 | 2278 | | |
2292 | | - | |
2293 | | - | |
2294 | 2279 | | |
2295 | 2280 | | |
2296 | | - | |
2297 | | - | |
2298 | | - | |
2299 | 2281 | | |
2300 | 2282 | | |
2301 | 2283 | | |
| |||
2888 | 2870 | | |
2889 | 2871 | | |
2890 | 2872 | | |
2891 | | - | |
2892 | 2873 | | |
2893 | 2874 | | |
| 2875 | + | |
2894 | 2876 | | |
2895 | 2877 | | |
2896 | 2878 | | |
| |||
0 commit comments