Commit 05cc5a3
bnx2x: add vlan filtering offload
Current driver always uses vlan-promisc mode, i.e., it receives both
tagged and untagged traffic and lets the network stack drop packets
tagged with unrequested vlan tags.
This patch implements vlan-filtering offload in the driver -
Unless explicitly configured to promisc mode, only untagged packets or
packets tagged with requested vlans would reach the Rx flow.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent e82a08b commit 05cc5a3
File tree
10 files changed
+905
-290
lines changed- drivers/net/ethernet/broadcom/bnx2x
10 files changed
+905
-290
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1231 | 1235 | | |
1232 | 1236 | | |
1233 | 1237 | | |
| |||
1410 | 1414 | | |
1411 | 1415 | | |
1412 | 1416 | | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1413 | 1420 | | |
1414 | 1421 | | |
1415 | 1422 | | |
| |||
1427 | 1434 | | |
1428 | 1435 | | |
1429 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1430 | 1443 | | |
1431 | 1444 | | |
1432 | 1445 | | |
| |||
1865 | 1878 | | |
1866 | 1879 | | |
1867 | 1880 | | |
1868 | | - | |
1869 | | - | |
1870 | 1881 | | |
1871 | 1882 | | |
1872 | 1883 | | |
| |||
1929 | 1940 | | |
1930 | 1941 | | |
1931 | 1942 | | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1932 | 1948 | | |
1933 | 1949 | | |
1934 | 1950 | | |
| |||
1956 | 1972 | | |
1957 | 1973 | | |
1958 | 1974 | | |
1959 | | - | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
1966 | | - | |
1967 | 1975 | | |
1968 | 1976 | | |
1969 | | - | |
1970 | | - | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1971 | 1980 | | |
1972 | | - | |
1973 | 1981 | | |
1974 | 1982 | | |
1975 | | - | |
1976 | 1983 | | |
1977 | 1984 | | |
1978 | 1985 | | |
| |||
2082 | 2089 | | |
2083 | 2090 | | |
2084 | 2091 | | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
2085 | 2097 | | |
2086 | 2098 | | |
2087 | 2099 | | |
| |||
2486 | 2498 | | |
2487 | 2499 | | |
2488 | 2500 | | |
| 2501 | + | |
2489 | 2502 | | |
2490 | 2503 | | |
2491 | 2504 | | |
| |||
2596 | 2609 | | |
2597 | 2610 | | |
2598 | 2611 | | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
2599 | 2617 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2848 | 2848 | | |
2849 | 2849 | | |
2850 | 2850 | | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
2851 | 2856 | | |
2852 | 2857 | | |
2853 | 2858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1069 | 1078 | | |
1070 | 1079 | | |
1071 | 1080 | | |
| |||
1125 | 1134 | | |
1126 | 1135 | | |
1127 | 1136 | | |
1128 | | - | |
| 1137 | + | |
1129 | 1138 | | |
1130 | 1139 | | |
1131 | 1140 | | |
| |||
1135 | 1144 | | |
1136 | 1145 | | |
1137 | 1146 | | |
| 1147 | + | |
| 1148 | + | |
1138 | 1149 | | |
1139 | 1150 | | |
1140 | 1151 | | |
| |||
0 commit comments