Commit a8150c9
dpaa2-switch: reorganize the [pre]changeupper events
Create separate functions, dpaa2_switch_port_prechangeupper and
dpaa2_switch_port_changeupper, to be called directly when a DPSW port
changes its upper device.
This way we are not open-coding everything in the main event callback
and we can easily extent, for example, with bond offload.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent f6da276 commit a8150c9
1 file changed
Lines changed: 52 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2173 | 2173 | | |
2174 | 2174 | | |
2175 | 2175 | | |
2176 | | - | |
2177 | | - | |
| 2176 | + | |
| 2177 | + | |
2178 | 2178 | | |
2179 | | - | |
2180 | | - | |
2181 | 2179 | | |
2182 | 2180 | | |
2183 | | - | |
| 2181 | + | |
2184 | 2182 | | |
2185 | 2183 | | |
2186 | | - | |
| 2184 | + | |
2187 | 2185 | | |
2188 | 2186 | | |
2189 | | - | |
2190 | | - | |
2191 | | - | |
2192 | | - | |
2193 | | - | |
2194 | | - | |
2195 | | - | |
| 2187 | + | |
| 2188 | + | |
2196 | 2189 | | |
2197 | 2190 | | |
2198 | 2191 | | |
2199 | 2192 | | |
2200 | | - | |
| 2193 | + | |
2201 | 2194 | | |
2202 | 2195 | | |
2203 | 2196 | | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
2204 | 2237 | | |
2205 | 2238 | | |
2206 | 2239 | | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
2216 | 2244 | | |
2217 | 2245 | | |
2218 | 2246 | | |
2219 | | - | |
2220 | | - | |
| 2247 | + | |
2221 | 2248 | | |
2222 | 2249 | | |
2223 | 2250 | | |
| |||
0 commit comments