summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-01-17 03:14:20 -0800
committerMaciej Żenczykowski <maze@google.com>2021-01-19 23:18:46 -0800
commit0e5d26f4820a84f31b353f4859dbb856e3b55e66 (patch)
treef515911156069f0f7b679d5c9a6aab0d0f043443 /server/NetworkController.cpp
parent44159383b792cfe5c867dbcf8251f2f95bc47597 (diff)
bpf is always supported
Test: builds, atest, TreeHugger Bug: 167500195 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ia1a45de523bb20d451df2041a9cc3fe9930f6686
Diffstat (limited to 'server/NetworkController.cpp')
-rw-r--r--server/NetworkController.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp
index be637cb2..7895bbbb 100644
--- a/server/NetworkController.cpp
+++ b/server/NetworkController.cpp
@@ -147,14 +147,12 @@ NetworkController::NetworkController() :
// TODO: perhaps only remove the clsact on the interface which is added by
// RouteController::addInterfaceToPhysicalNetwork. Currently, the netd only
// attach the clsact to the interface for the physical network.
- if (bpf::isBpfSupported()) {
- const auto& ifaces = InterfaceController::getIfaceNames();
- if (isOk(ifaces)) {
- for (const std::string& iface : ifaces.value()) {
- if (int ifIndex = if_nametoindex(iface.c_str())) {
- // Ignore the error because the interface might not have a clsact.
- tcQdiscDelDevClsact(ifIndex);
- }
+ const auto& ifaces = InterfaceController::getIfaceNames();
+ if (isOk(ifaces)) {
+ for (const std::string& iface : ifaces.value()) {
+ if (int ifIndex = if_nametoindex(iface.c_str())) {
+ // Ignore the error because the interface might not have a clsact.
+ tcQdiscDelDevClsact(ifIndex);
}
}
}