Commit 34d21de
net: Move {l,t,d}stats allocation to core and convert veth & vrf
Move {l,t,d}stats allocation to the core and let netdevs pick the stats
type they need. That way the driver doesn't have to bother with error
handling (allocation failure checking, making sure free happens in the
right spot, etc) - all happening in the core.
Co-developed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Cc: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20231114004220.6495-3-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>1 parent 79e0c5b commit 34d21de
File tree
4 files changed
+69
-30
lines changed- drivers/net
- include/linux
- net/core
4 files changed
+69
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1506 | 1506 | | |
1507 | 1507 | | |
1508 | 1508 | | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
| 1509 | + | |
1522 | 1510 | | |
1523 | 1511 | | |
1524 | 1512 | | |
1525 | 1513 | | |
1526 | 1514 | | |
1527 | | - | |
1528 | 1515 | | |
1529 | 1516 | | |
1530 | 1517 | | |
| |||
1796 | 1783 | | |
1797 | 1784 | | |
1798 | 1785 | | |
| 1786 | + | |
1799 | 1787 | | |
1800 | 1788 | | |
1801 | 1789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | 1167 | | |
1171 | 1168 | | |
1172 | 1169 | | |
1173 | 1170 | | |
1174 | 1171 | | |
1175 | 1172 | | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | 1173 | | |
1181 | 1174 | | |
1182 | | - | |
| 1175 | + | |
1183 | 1176 | | |
1184 | 1177 | | |
1185 | 1178 | | |
| |||
1193 | 1186 | | |
1194 | 1187 | | |
1195 | 1188 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | 1189 | | |
1200 | 1190 | | |
1201 | 1191 | | |
| |||
1694 | 1684 | | |
1695 | 1685 | | |
1696 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
1697 | 1689 | | |
1698 | 1690 | | |
1699 | 1691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1797 | 1797 | | |
1798 | 1798 | | |
1799 | 1799 | | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
1800 | 1807 | | |
1801 | 1808 | | |
1802 | 1809 | | |
| |||
1991 | 1998 | | |
1992 | 1999 | | |
1993 | 2000 | | |
1994 | | - | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
1998 | 2009 | | |
1999 | 2010 | | |
2000 | 2011 | | |
| |||
2354 | 2365 | | |
2355 | 2366 | | |
2356 | 2367 | | |
| 2368 | + | |
2357 | 2369 | | |
2358 | 2370 | | |
2359 | 2371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10051 | 10051 | | |
10052 | 10052 | | |
10053 | 10053 | | |
| 10054 | + | |
| 10055 | + | |
| 10056 | + | |
| 10057 | + | |
| 10058 | + | |
| 10059 | + | |
| 10060 | + | |
| 10061 | + | |
| 10062 | + | |
| 10063 | + | |
| 10064 | + | |
| 10065 | + | |
| 10066 | + | |
| 10067 | + | |
| 10068 | + | |
| 10069 | + | |
| 10070 | + | |
| 10071 | + | |
| 10072 | + | |
| 10073 | + | |
| 10074 | + | |
| 10075 | + | |
| 10076 | + | |
| 10077 | + | |
| 10078 | + | |
| 10079 | + | |
| 10080 | + | |
| 10081 | + | |
| 10082 | + | |
| 10083 | + | |
| 10084 | + | |
| 10085 | + | |
| 10086 | + | |
| 10087 | + | |
| 10088 | + | |
| 10089 | + | |
| 10090 | + | |
| 10091 | + | |
| 10092 | + | |
| 10093 | + | |
10054 | 10094 | | |
10055 | 10095 | | |
10056 | 10096 | | |
| |||
10111 | 10151 | | |
10112 | 10152 | | |
10113 | 10153 | | |
| 10154 | + | |
| 10155 | + | |
| 10156 | + | |
| 10157 | + | |
10114 | 10158 | | |
10115 | 10159 | | |
10116 | | - | |
| 10160 | + | |
10117 | 10161 | | |
10118 | 10162 | | |
10119 | 10163 | | |
| |||
10219 | 10263 | | |
10220 | 10264 | | |
10221 | 10265 | | |
| 10266 | + | |
| 10267 | + | |
10222 | 10268 | | |
10223 | 10269 | | |
10224 | 10270 | | |
| |||
10471 | 10517 | | |
10472 | 10518 | | |
10473 | 10519 | | |
| 10520 | + | |
10474 | 10521 | | |
10475 | 10522 | | |
10476 | 10523 | | |
| |||
0 commit comments