writex() has implicit barriers, that's what makes it different from
writex_relaxed(). Therefore these calls to mmiowb() can be removed.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
static void rtl_ack_events(struct rtl8169_private *tp, u16 bits)
{
RTL_W16(tp, IntrStatus, bits);
static void rtl_ack_events(struct rtl8169_private *tp, u16 bits)
{
RTL_W16(tp, IntrStatus, bits);
}
static void rtl_irq_disable(struct rtl8169_private *tp)
{
RTL_W16(tp, IntrMask, 0);
}
static void rtl_irq_disable(struct rtl8169_private *tp)
{
RTL_W16(tp, IntrMask, 0);
}
#define RTL_EVENT_NAPI_RX (RxOK | RxErr)
}
#define RTL_EVENT_NAPI_RX (RxOK | RxErr)
if (unlikely(stop_queue))
netif_stop_queue(dev);
if (unlikely(stop_queue))
netif_stop_queue(dev);
- if (__netdev_sent_queue(dev, skb->len, skb->xmit_more)) {
+ if (__netdev_sent_queue(dev, skb->len, skb->xmit_more))
if (unlikely(stop_queue)) {
/* Sync with rtl_tx:
if (unlikely(stop_queue)) {
/* Sync with rtl_tx:
if (work_done < budget) {
napi_complete_done(napi, work_done);
if (work_done < budget) {
napi_complete_done(napi, work_done);