/* Store, in the ethernet_context for master interface, the original eth_tx() function, which will send packet with tag appended.  */
int dsa_register_master_tx(struct net_if *iface, dsa_send_t fn)
/* Store, in the ethernet_context for master interface, the original eth_tx() function, which will send packet with tag appended.  */
int dsa_register_master_tx(struct net_if *iface, dsa_send_t fn)
{
	struct ethernet_context *ctx = net_if_l2_data(iface);
	ctx->dsa_send = fn;
	return 0;
}