From: Florian Fainelli <f.faine...@gmail.com> Date: Wed, 29 Apr 2015 18:57:37 -0700
> +static void dsa_setup_dst_end(struct net_device *dev, struct dsa_switch_tree > *dst) > +{ > + /* > + * If we use a tagging format that doesn't have an ethertype > + * field, make sure that all packets from this point on get > + * sent to the tag format's receive function. > + */ > + wmb(); > + dev->dsa_ptr = (void *)dst; I know you're just moving code, but this cast seems pointless to me. dev->dsa_ptr is of type "struct dsa_switch_tree". -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html