[mcs814x] nuport-mac: various fixes
authorFlorian Fainelli <florian@openwrt.org>
Mon, 15 Oct 2012 21:03:57 +0000 (21:03 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 15 Oct 2012 21:03:57 +0000 (21:03 +0000)
commite910e78dba966a90ce42a39c7496c279b9d915cc
treec786e9938e6ba4cbc5691fd57931fc4cee73e9b4
parent86148ac69bbfb69d10b5118b6583fb0c94ede629
[mcs814x] nuport-mac: various fixes

- properly check for the link up condition in the phylib adjust callback
- do not assign skb->dev, eth_type_trans() already does it
- handle skb allocation failures in the refill path

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33780 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c