Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAC address table overflow #1205

Open
takikawa opened this issue Aug 10, 2017 · 0 comments
Open

MAC address table overflow #1205

takikawa opened this issue Aug 10, 2017 · 0 comments

Comments

@takikawa
Copy link
Contributor

Using the intel10g driver, it seems to be possible to get a MAC address table overflow error (core/main.lua:26: MAC address table overflow) if you ever use more than 128 MAC addresses. Even if they are not used simultaneously (e.g., you reconfigure the NIC app repeatedly without reseting the NIC).

Is this behavior ok, or should the driver disable unused MAC addresses after all apps using it are gone? (it does this for VLAN tags and I think it could do the same for MACs) I'm asking because I'm wondering what the behavior should be for intel_mp.

Here's an example script that demonstrates the issue (running it will fail the assertion):

#!../../snabb snsh

-- Test mac address allocation

local basic_apps = require("apps.basic.basic_apps")
local intel      = require("apps.intel.intel_app")
local lib        = require("core.lib")

local pciaddr0 = lib.getenv("SNABB_PCI_INTEL0")

-- 128 is one more than the 127 limit
for i=0, 128 do
   local c = config.new()

   config.app(c, "nic", intel.driver,
              { pciaddr = pciaddr0,
                vmdq = true,
                macaddr = "00:11:22:33:44:" .. string.format("%02x", i) })
   config.app(c, "source", basic_apps.Source)
   config.link(c, "source.out0 -> nic.input")

   engine.configure(c)
   engine.main({ duration = 0.01 })
end

Comparatively, it's fine to do the same thing with VLAN tags:

#!../../snabb snsh

local basic_apps = require("apps.basic.basic_apps")
local intel      = require("apps.intel.intel_app")
local lib        = require("core.lib")

local pciaddr0 = lib.getenv("SNABB_PCI_INTEL0")

-- 256 > 63 limit
for i=0, 256 do
   local c = config.new()

   config.app(c, "nic", intel.driver,
              { pciaddr = pciaddr0,
                vmdq = true,
                vlan = i })
   config.app(c, "source", basic_apps.Source)
   config.link(c, "source.out0 -> nic.input")

   engine.configure(c)
   engine.main({ duration = 0.01 })
end
lukego pushed a commit that referenced this issue Jan 2, 2019
Update CHANGELOG.md with 2019.09.02 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant