skb_bond: Let master see skb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I was looking at writing a net driver for a Marvell switch chip attached to an Ethernet MAC on a SoC.  The driver would be similar to the bonding driver except that it would bond to a single slave (the SoC Ethernet driver) and export multiple net devs.  The idea is to steer frames to a physical port on the switch by adding a 4-byte trailer to the frame.  The switch will use the trailer to determine the port to send the frame.  The switch also strips the trailer before sending.  On packet reception, the switch adds the 4-byte trailer to the frame indicating the physical port the frame was received.  The master needs to see the skb in order to determine the actual dev to associate with the skb and to strip off the 4-byte trailer.

I was thinking of adding a function pointer to net_dev to allow a master to see the skb and have skb_bond() call the function if the pointer has been initialized.  skb_bond would function as is if the pointer is not initialized.

Is there a better way to accomplish this or is this approach reasonable?

Thanks,
...doug




      
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux