ETH_HLEN + ETH_FCS_LEN,                        \
              cache_line_size())
 
-#define MVNETA_SKB_HEADROOM    (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + \
-                                NET_IP_ALIGN)
+#define MVNETA_SKB_HEADROOM    max(XDP_PACKET_HEADROOM, NET_SKB_PAD)
 #define MVNETA_SKB_PAD (SKB_DATA_ALIGN(sizeof(struct skb_shared_info) + \
                         MVNETA_SKB_HEADROOM))
 #define MVNETA_SKB_SIZE(len)   (SKB_DATA_ALIGN(len) + MVNETA_SKB_PAD)
        mvneta_bm_pool_destroy(pp->bm_priv, pp->pool_short, 1 << pp->id);
 
        pp->bm_priv = NULL;
+       pp->rx_offset_correction = MVNETA_SKB_HEADROOM;
        mvreg_write(pp, MVNETA_ACC_MODE, MVNETA_ACC_MODE_EXT1);
        netdev_info(pp->dev, "fail to update MTU, fall back to software BM\n");
 }
        SET_NETDEV_DEV(dev, &pdev->dev);
 
        pp->id = global_port_id++;
-       pp->rx_offset_correction = MVNETA_SKB_HEADROOM;
 
        /* Obtain access to BM resources if enabled and already initialized */
        bm_node = of_parse_phandle(dn, "buffer-manager", 0);
        }
        of_node_put(bm_node);
 
+       /* sw buffer management */
+       if (!pp->bm_priv)
+               pp->rx_offset_correction = MVNETA_SKB_HEADROOM;
+
        err = mvneta_init(&pdev->dev, pp);
        if (err < 0)
                goto err_netdev;
                err = mvneta_bm_port_init(pdev, pp);
                if (err < 0) {
                        dev_info(&pdev->dev, "use SW buffer management\n");
+                       pp->rx_offset_correction = MVNETA_SKB_HEADROOM;
                        pp->bm_priv = NULL;
                }
        }