public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* set_multicast_list vs. set_rx_mode
@ 2007-08-15 12:33 Johannes Berg
  2007-08-15 12:33 ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2007-08-15 12:33 UTC (permalink / raw)
  To: netdev; +Cc: Patrick McHardy

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

Hey,

Is it intentional that in the case where set_rx_mode is assigned, you
still need to assign set_multicast_list even if it won't ever be called
as a flag for SIOCADDMULTI?

I was thinking of converting the wireless code to use set_rx_mode and
assign set_multicast_list only if the underlying hardware supports
multicast filtering, and it seems that is well-supported, but it does
seem a bit weird that set_multicast_list degrades to a flag.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: set_multicast_list vs. set_rx_mode
  2007-08-15 12:33 set_multicast_list vs. set_rx_mode Johannes Berg
@ 2007-08-15 12:33 ` Patrick McHardy
  2007-08-15 12:44   ` Johannes Berg
  2007-08-15 12:55   ` Johannes Berg
  0 siblings, 2 replies; 4+ messages in thread
From: Patrick McHardy @ 2007-08-15 12:33 UTC (permalink / raw)
  To: Johannes Berg; +Cc: netdev

Johannes Berg wrote:
> Is it intentional that in the case where set_rx_mode is assigned, you
> still need to assign set_multicast_list even if it won't ever be called
> as a flag for SIOCADDMULTI?
> 
> I was thinking of converting the wireless code to use set_rx_mode and
> assign set_multicast_list only if the underlying hardware supports
> multicast filtering, and it seems that is well-supported, but it does
> seem a bit weird that set_multicast_list degrades to a flag.


Indeed, I missed that. It should check for !dev->set_multicast_list &&
!dev->set_rx_mode before returning -EINVAL.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: set_multicast_list vs. set_rx_mode
  2007-08-15 12:33 ` Patrick McHardy
@ 2007-08-15 12:44   ` Johannes Berg
  2007-08-15 12:55   ` Johannes Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-08-15 12:44 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

On Wed, 2007-08-15 at 14:33 +0200, Patrick McHardy wrote:
> Johannes Berg wrote:
> > Is it intentional that in the case where set_rx_mode is assigned, you
> > still need to assign set_multicast_list even if it won't ever be called
> > as a flag for SIOCADDMULTI?
> > 
> > I was thinking of converting the wireless code to use set_rx_mode and
> > assign set_multicast_list only if the underlying hardware supports
> > multicast filtering, and it seems that is well-supported, but it does
> > seem a bit weird that set_multicast_list degrades to a flag.
> 
> 
> Indeed, I missed that. It should check for !dev->set_multicast_list &&
> !dev->set_rx_mode before returning -EINVAL.

Ok. Want me to send a patch?

And then the expected behaviour is that set_rx_mode will set
IFF_ALLMULTI if it can't honour the list, right?

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: set_multicast_list vs. set_rx_mode
  2007-08-15 12:33 ` Patrick McHardy
  2007-08-15 12:44   ` Johannes Berg
@ 2007-08-15 12:55   ` Johannes Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-08-15 12:55 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]

On Wed, 2007-08-15 at 14:33 +0200, Patrick McHardy wrote:
> Johannes Berg wrote:
> > Is it intentional that in the case where set_rx_mode is assigned, you
> > still need to assign set_multicast_list even if it won't ever be called
> > as a flag for SIOCADDMULTI?
> > 
> > I was thinking of converting the wireless code to use set_rx_mode and
> > assign set_multicast_list only if the underlying hardware supports
> > multicast filtering, and it seems that is well-supported, but it does
> > seem a bit weird that set_multicast_list degrades to a flag.
> 
> 
> Indeed, I missed that. It should check for !dev->set_multicast_list &&
> !dev->set_rx_mode before returning -EINVAL.

Hmm. We don't really support multiple unicast addresses so I should
probably not use set_rx_mode. What is the meaning of
dev->change_rx_flags? It seems to be called with IFF_ALLMULTI but if it
is assigned and set_multicast_list is not then you also cannot add
multicast addresses via SIOCADDMULTI.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-15 12:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 12:33 set_multicast_list vs. set_rx_mode Johannes Berg
2007-08-15 12:33 ` Patrick McHardy
2007-08-15 12:44   ` Johannes Berg
2007-08-15 12:55   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox