Bug 197790 - Intel em driver - random outgoing traffic sent through wrong interface
Summary: Intel em driver - random outgoing traffic sent through wrong interface
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.1-RELEASE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
Keywords: IntelNetworking
Depends on:
Reported: 2015-02-18 16:43 UTC by vladimir.nikolic
Modified: 2018-05-28 20:25 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description vladimir.nikolic 2015-02-18 16:43:59 UTC

I already have two servers (10.1 release, i386) with Intel gigabit dual port cards (82546GB and 82571EB) with very strange behavior regarding routing.
For example, default gateway is on em0, but after some time after server restart, traffic for random ip ( goes out through em1. Reset helps but only until some other ip(s) has been put on wrong interface.
'netstat -nr' is as it should be, everything worked fine on FreeBSD 9.1.

Comment 1 Hiren Panchasara freebsd_committer 2015-03-10 19:07:43 UTC
(In reply to vladimir.nikolic from comment #0)
Everything works until "server restart" and then it switches to wrong default gateway? What do you mean by "server restart"?

Also, "Reset helps" as you said. What do you mean by that? Reboot? or kldloading/unloading drivers?

Adding Eric from Intel.
Comment 2 vladimir.nikolic 2015-03-11 01:25:16 UTC
By 'reset' I meant reboot of server. 
We have 'em' driver compiled into kernel, so unloading driver is not an option.
I've already downgrade one server to FreeBSD 9.3 and virtualized the other one on VMware esxi host (FreeBSD 10.1 remained). It's interesting that vmware 'emulate' em driver, but 'routing' error has disappeared. 
Maybe I need to upgrade firmware on network cards?

Vladimir Nikolic
Comment 3 Sean Bruno freebsd_committer 2015-08-03 17:31:45 UTC
(In reply to vladimir.nikolic from comment #0)
Please post your configuration for your router/server here.  Its hard to tell what you are setting up here.  Also, I doubt that em(4) is in itself routing the packets incorrectly.  It almost sounds like the network stack is getting confused.
Comment 4 Daniel Bilik 2016-05-17 21:24:44 UTC
Exactly the same issue here on one host. Problems started after upgrading from 9.x to 10.x, and have persisted after migrating the host to a newer hardware. Previously, it was a machine with re(4) interfaces, while the new one uses em(4), so I can confirm the problem is very probably not hardware related.

I had disscussed the problem on freebsd-net@ and later reported here as PR 204735. Sorry for duplicate, I've found this bugreport just now. :)

Note: I'm currently testing revisions 286028, 286037 and 286242 from HEAD, manually applied to 10-STABLE, to see whether it changes this unpleasent behaviour.
Comment 5 Daniel Bilik 2016-05-19 13:39:47 UTC
Vladimir, in case you still (after several months) have some of the misbehaving servers at hand, would you please check the kernel - is it GENERIC or some custom? And in case it's custom, could you find out whether it was compiled with "options FLOWTABLE" defined?
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:41:03 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
- Untouched since 2018-01-01.
- Affects Base System OR Documentation


Reset to open status.

I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Comment 7 Eugene Grosbein freebsd_committer 2018-05-28 20:25:29 UTC
Feedback timeout (2 years).