RE: [EXT] Re: [net-next, 1/2] enetc: Configure the Time-Aware Scheduler via tc-taprio offload

From: Po Liu
Date: Tue Nov 12 2019 - 23:55:19 EST


Hi David,

Thanks!
Br,
Po Liu

> -----Original Message-----
> From: David Miller <davem@xxxxxxxxxxxxx>
> Sent: 2019å11æ13æ 3:00
> To: simon.horman@xxxxxxxxxxxxx
> Cc: Po Liu <po.liu@xxxxxxx>; Claudiu Manoil <claudiu.manoil@xxxxxxx>;
> linux-kernel@xxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx;
> vinicius.gomes@xxxxxxxxx; Vladimir Oltean <vladimir.oltean@xxxxxxx>;
> Alexandru Marginean <alexandru.marginean@xxxxxxx>; Xiaoliang Yang
> <xiaoliang.yang_1@xxxxxxx>; Roy Zang <roy.zang@xxxxxxx>; Mingkai Hu
> <mingkai.hu@xxxxxxx>; Jerry Huang <jerry.huang@xxxxxxx>; Leo Li
> <leoyang.li@xxxxxxx>
> Subject: [EXT] Re: [net-next, 1/2] enetc: Configure the Time-Aware Scheduler via
> tc-taprio offload
>
> Caution: EXT Email
>
> From: David Miller <davem@xxxxxxxxxxxxx>
> Date: Tue, 12 Nov 2019 10:58:59 -0800 (PST)
>
> >
> > Oops, I didn't see this feedback because v2 had been posted.
> >
> > I'll revert that now.
> >
> > Please address Simon's feedback on these two patches, and then post a
> > v3, thank you.
>
> Also, v2 doesn't even compile :-(
>
> In file included from drivers/net/ethernet/freescale/enetc/enetc.h:14,
> from drivers/net/ethernet/freescale/enetc/enetc_qos.c:4:
> drivers/net/ethernet/freescale/enetc/enetc_qos.c: In function
> Êenetc_setup_tc_taprioÊ:
> drivers/net/ethernet/freescale/enetc/enetc_hw.h:308:32: warning: ÊtempÊ may
> be used uninitialized in this function [-Wmaybe-uninitialized] #define
> enetc_wr_reg(reg, val) iowrite32((val), (reg))
> ^~~~~~~~~
> drivers/net/ethernet/freescale/enetc/enetc_qos.c:59:6: note: ÊtempÊ was
> declared here

More delete one line. Will fix in v3.

> u32 temp;
> ^~~~
> ERROR: "enetc_sched_speed_set" [drivers/net/ethernet/freescale/enetc/fsl-
> enetc-vf.ko] undefined!
> ERROR: "enetc_setup_tc_taprio" [drivers/net/ethernet/freescale/enetc/fsl-
> enetc-vf.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
> make: *** [Makefile:1282: modules] Error 2

I got this situation.
It happened when set module mode, since vf drvier should not own the taprio set.
Thanks!