vrx518_tc: fix compilation error with kernel 6.1
[openwrt/openwrt.git] / package / kernel / lantiq / vrx518_tc / patches / 200-swplat.patch
index 793adefdd65b35b54c41eac3d401e45b60f3b371..edc97998b739de6605d82f0e50e23adca5261a23 100644 (file)
@@ -79,7 +79,7 @@ This replaces it by a basic working implementation.
                tc_dbg(priv->tc_priv, MSG_TX, "ATM: TX fail\n");
 --- a/dcdp/ptm_tc.c
 +++ b/dcdp/ptm_tc.c
-@@ -497,6 +497,7 @@ static int ptm_xmit(struct sk_buff *skb,
+@@ -506,6 +506,7 @@ static int ptm_xmit(struct sk_buff *skb,
        struct ptm_priv *ptm_tc = netdev_priv(dev);
        int qid;
        enum tc_pkt_type type;
@@ -87,7 +87,7 @@ This replaces it by a basic working implementation.
  
        if (!showtime_stat(ptm_tc->tc_priv))
                goto PTM_XMIT_DROP;
-@@ -510,11 +511,13 @@ static int ptm_xmit(struct sk_buff *skb,
+@@ -519,11 +520,13 @@ static int ptm_xmit(struct sk_buff *skb,
        type = ptm_tc->tc_priv->tc_mode == TC_PTM_BND_MODE
                ? PTM_BOND_PKT : PTM_SL_PKT;
  
@@ -102,7 +102,7 @@ This replaces it by a basic working implementation.
        }
  
        return 0;
-@@ -631,7 +634,7 @@ static int ptm_dev_init(struct tc_priv *
+@@ -640,7 +643,7 @@ static int ptm_dev_init(struct tc_priv *
        const char macaddr[ETH_ALEN]
                = {0xAC, 0x9A, 0x96, 0x11, 0x22, 0x33};
  
@@ -111,7 +111,7 @@ This replaces it by a basic working implementation.
        if (!dev) {
                tc_dbg(tc_priv, MSG_INIT, "Cannot alloc net device\n");
                return -ENOMEM;
-@@ -2324,7 +2327,11 @@ static void ptm_aca_init(struct ptm_ep_p
+@@ -2337,7 +2340,11 @@ static void ptm_aca_init(struct ptm_ep_p
        cfg = &priv->tc_priv->cfg;
  
        txin = &param.aca_txin;
@@ -123,7 +123,7 @@ This replaces it by a basic working implementation.
        txin->hd_size_in_dw = cfg->txin.soc_desc_dwsz;
        txin->pd_desc_base = SB_XBAR_ADDR(__ACA_TX_IN_PD_LIST_BASE);
        txin->pd_desc_num = __ACA_TX_IN_PD_LIST_NUM;
-@@ -2347,7 +2354,11 @@ static void ptm_aca_init(struct ptm_ep_p
+@@ -2360,7 +2367,11 @@ static void ptm_aca_init(struct ptm_ep_p
                txin->soc_cmlt_cnt_addr);
  
        txout = &param.aca_txout;
@@ -135,7 +135,7 @@ This replaces it by a basic working implementation.
        txout->hd_size_in_dw = cfg->txout.soc_desc_dwsz;
        if (priv->tc_priv->param.cdma_desc_loc == LOC_IN_FPI)
                txout->pd_desc_base = sb_r32(__TX_OUT_SHADOW_PTR) - phybase;
-@@ -2373,7 +2384,11 @@ static void ptm_aca_init(struct ptm_ep_p
+@@ -2386,7 +2397,11 @@ static void ptm_aca_init(struct ptm_ep_p
                txout->soc_cmlt_cnt_addr);
  
        rxout = &param.aca_rxout;
@@ -147,7 +147,7 @@ This replaces it by a basic working implementation.
        rxout->hd_size_in_dw = cfg->rxout.soc_desc_dwsz;
        if (priv->tc_priv->param.cdma_desc_loc == LOC_IN_FPI)
                rxout->pd_desc_base = sb_r32(__RX_OUT_SHADOW_PTR) - phybase;
-@@ -2399,7 +2414,11 @@ static void ptm_aca_init(struct ptm_ep_p
+@@ -2412,7 +2427,11 @@ static void ptm_aca_init(struct ptm_ep_p
                rxout->soc_cmlt_cnt_addr);
  
        rxin = &param.aca_rxin;