2013/2/11 Florian Fainelli <[email protected]>: > On 02/11/2013 01:05 PM, Rafał Miłecki wrote: >> >> I've added/fixed switch driver for my BCM4706 and now my bgmac driver >> seems to receive VLAN-tagged packets. I believe that "08 06 00 01" is >> VLAN 1 tag (08 06 0V ID). > > > That is ARP ethertype (0x0806) and then Hardware type (0x0001), I don't see > any VLAN tag here, unless the switch has already removed the vlan tag from > the incoming port to the outgoing (CPU one) port.
My mistake, sorry :| I've meant 81 00 00 01 of course (81 00 0V ID). In the received packet (see attached file) it's placed between source and packet type. >> Unfortunately it seems that system somehow ignores these packets, >> ndo_start_xmit is never called in bgmac. > > > Since you have fixed the switch driver, ensure that there is a valid link > seen from the bgmac driver. It's receiving packets, so I believe it's in "open" state (with netif_carrier_on called), anything else I should take a look at? -- Rafał
bgmac: 0000 ff ff ff ff ff ff 00 1d ba 19 9e db Dst: ff:ff:ff:ff:ff:ff Src: 00:1d:ba:19:9e:db 000c 81 00 00 01 VLAN ID 0x1 0010 08 06 00 01 Type: 0x0806 (ARP) Hw type: 00 01 0014 08 00 06 04 00 01 00 1d ba 19 9e db c0 a8 01 02 Prot: 08 00 (IP) ... Sender MAC: 00:1d:ba:19:9e:db Sender IP: 192.168.1.2 0024 00 00 00 00 00 00 c0 a8 01 01 00 00 00 00 00 00 Target MAC: 00:00:00_00:00:00 Target IP: 192.168.1.1 Unknown (00 00 00 00 00 00) 0034 00 00 00 00 00 00 00 00 00 00 00 00 f5 3f d8 c1 Unknown wireshark: 0000 ff ff ff ff ff ff 00 1d ba 19 9e db 08 06 00 01 Dst: ff:ff:ff:ff:ff:ff Src: 00:1d:ba:19:9e:db Type: 0x0806 (ARP) Hw type: 00 01 0010 08 00 06 04 00 01 00 1d ba 19 9e db c0 a8 01 02 Prot: 08 00 (IP) ... Sender MAC: 00:1d:ba:19:9e:db Sender IP: 192.168.1.2 0020 00 00 00 00 00 00 c0 a8 01 01 Target MAC: 00:00:00_00:00:00 Target IP: 192.168.1.1
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
