Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Multicast reception doesn't work in Fujitsu jade board (QNX loaded): (6 Items)
   
Multicast reception doesn't work in Fujitsu jade board (QNX loaded)  
Hi,

I have a jade board in which QNX is running. From this board, i could send a multicast packet to a multicast listener 
running on a QNX self host machine. But when i run the multicast listener on Jade board and send multicast packets from 
QNX self host, it seems the packets are not reaching into the listener sockets. I could see the 'multicast join'  
messages in the network (checked via. packet sniffer). Ii have issued "nicinfo" command on jade board. It shows in 
ethernet driver, multicast support is enabled. 

Whether i need to enable/configure anything in jade board to catch multicast packets? 
Can anyone help me to sort out this issue?

thank you
princy

Attachment: Text listener.c 1.83 KB
RE: Multicast reception doesn't work in Fujitsu jade board (QNX loaded)  
> jade multicast rx problem

I think the jade uses devn-smc9118.so (am I right?)
which appears to have very complex support for multicast
rx in the devctl.c source file.

It's possible the very sophisticated code is broken - it
happens.

Suggestion: modify the mcast listener to listen to a large
range of multicast addresses, to force the driver to very
simply hit the bit in the control register which enables
rx of all multicast.

If this solves the problem, the very fancy multicast code
is broken - it is calculating the wrong bit in the hash
mask - and we need to create a PR to get this fixed.

--
aboyd
Re: Multicast reception doesn't work in Fujitsu jade board (QNX loaded)  
Yes, "what Andrew said" :-)

You may also want to verify that indeed the packets are indeed getting 
dropped by the driver and not somewhere else. E.g. use nicinfo, ifconfig 
-v, netstat -p/-in/-s etc to see how "high" it gets...

/P
Re: Multicast reception doesn't work in Fujitsu jade board (QNX loaded)  
Hi Patrik Lahti & Andrew Boyd, 

Thanks for the info. I could sort out the issue temporarily.

I hope there is some issue in the driver logic.
I have re run the program by enabling _IO_NET_MCAST_ALL support in driver. Now I could receive the intended multicast 
packets at the listener side.

Code snippet
******************************
		io_net_msg_join_mcast_t mcast;
	
		mcast.type  = _IO_NET_JOIN_MCAST;
		mcast.flags = _IO_NET_MCAST_ALL; 
		
		devctl(fd, DCMD_IO_NET_CHANGE_MCAST, &mcast,sizeof(mcast), NULL)
************************************

So i think there may be some issues in the driver/io-pkt.

Regards,
princy
RE: Multicast reception doesn't work in Fujitsu jade board (QNX loaded)  
> I could sort out the issue temporarily

ok, please use your workaround - enable all multicast rx -
for now.  It will work just fine, except in the special
case of a large network with distinct flows of multicast
traffic.  In that case it will still work, but you would
see excessive CPU consumption.

I don't think I'm supposed to really do this, but I created 
PR 75617 to track this problem with the devn-smc9118.so
driver.

--
aboyd
Re: RE: Multicast reception doesn't work in Fujitsu jade board (QNX loaded)  
Ok. Thank you for the valuable initiation in this issue.
Actually our support period for jade board is expired. So if you came to know like this issue is fixed, then please let 
me too have the updated driver if it is possible. 
Regards,
princy