AnsweredAssumed Answered

VLAN TAG IS STRIPPED FROM PACKETS

Question asked by Elad Yosef on Dec 17, 2013

Hi, I'm working on P2041 custom board and trying to capture VLAN tagged packets.

I'm setting up LINUX BRIDGE between fm1-gb0/1 and installing net-hook in the bridge (attached sample code).

Inside the net-hook, I'm dumping the SK_BUFF and the VLAN TAG is missing from the packet.

I can only see it in the skb->vlan_tci attribute.

(see attached txt capture file)

 

Is it kconfig/driver problem?

How can I get the VLAN TAG (0x81XX) as part of the packet?

Where is the driver's source file?

 

I also checked the driver's info by ethtool

 

root@p2041rdb:~# ethtool -i fm1-gb0

driver: fsl_dpa

version:

firmware-version: 0

bus-info: fsl,dpaa.10

supports-statistics: no

supports-test: no

supports-eeprom-access: no

supports-register-dump: no

root@p2041rdb:~# ethtool -k fm1-gb0

Offload parameters for fm1-gb0:

rx-checksumming: off

tx-checksumming: on

scatter-gather: off

tcp-segmentation-offload: off

udp-fragmentation-offload: off

generic-segmentation-offload: off

generic-receive-offload: on

large-receive-offload: off

rx-vlan-offload: off

tx-vlan-offload: off

ntuple-filters: off

receive-hashing: off

 

 

I'm also attaching my kconfig file.

 

 

Thanks

 

Elad

Original Attachment has been moved to: crgn_dbg_nethook.c.zip

Original Attachment has been moved to: corenet32_smp_crgn_config.conf.zip

Original Attachment has been moved to: packet_capture.txt.zip

Outcomes