Issue about setting interface flag on network device.

Mulyadi Santosa mulyadi.santosa at
Mon Sep 26 15:19:31 EDT 2011

On Mon, Sep 26, 2011 at 15:17, 陳國成 < at> wrote:
> Hi,
> I encounter a strange problem when using 2.6.30 kernel.
> There are two processes, one runs main1() and the other runs main2().
> Two processes are running simultaneously on uni-processor system.
> Besides, eth0 is a proprietory ethernet driver.
> IFF_ALLMULTI can be set on eth0 successfully most of the time.
> The result looks like:
> main2: save_flags = 0x1043, flags = 0x1243
> seldom, setting IFF_ALLMULTI on eth0 will not take effect and the
> result looks like:
> main2: save_flags = 0x1002, flags = 0x1043
> main2: ret = 0
> Please give me some suggestion about how to debug this issue.

CMIIW, but looks like you design your code so that main1() runs first
then followed by main2(), right?

if that is right, then maybe what you experienced there is race condition....


Mulyadi Santosa
Freelance Linux trainer and consultant


More information about the Kernelnewbies mailing list