/* cxgb3i_find_dev - find the interface associated with the given address @ipaddr: ip address  */
static struct net_device* cxgb3i_find_dev(struct net_device *dev, __be32 ipaddr)
/* cxgb3i_find_dev - find the interface associated with the given address @ipaddr: ip address  */
static struct net_device* cxgb3i_find_dev(struct net_device *dev, __be32 ipaddr)
{
	struct flowi fl;
	int err;
	struct rtable *rt;
	memset(&fl, 0, sizeof(fl));
	fl.nl_u.ip4_u.daddr = ipaddr;
	err = ip_route_output_key(dev ? dev_net(dev) : &init_net, &rt, &fl);
	if (!err)
		return (&rt->u.dst)->dev;
	return NULL;
}