Re: [PATCH v3 net-next 3/3] octeontx2-pf: Add support for PTP clock

2020-07-13 Thread Sunil Kovvuri
On Mon, Jul 13, 2020 at 6:57 PM Richard Cochran wrote: > > On Mon, Jul 13, 2020 at 11:40:34AM +0530, sundeep subbaraya wrote: > > > > +static int otx2_ioctl(struct net_device *netdev, struct ifreq *req, > > > > int cmd) > > > > +{ > > > > + struct otx2_nic *pfvf = netdev_priv(netdev); > > > >

Re: [PATCH v3 net-next 3/3] octeontx2-pf: Add support for PTP clock

2020-07-13 Thread Richard Cochran
On Mon, Jul 13, 2020 at 11:40:34AM +0530, sundeep subbaraya wrote: > > > +static int otx2_ioctl(struct net_device *netdev, struct ifreq *req, int > > > cmd) > > > +{ > > > + struct otx2_nic *pfvf = netdev_priv(netdev); > > > + struct hwtstamp_config *cfg = &pfvf->tstamp; > > > + > > > > Ne

Re: [PATCH v3 net-next 3/3] octeontx2-pf: Add support for PTP clock

2020-07-12 Thread sundeep subbaraya
Hi Richard, On Thu, Jul 9, 2020 at 9:32 PM Richard Cochran wrote: > > On Thu, Jul 09, 2020 at 06:57:01PM +0530, sundeep.l...@gmail.com wrote: > > > @@ -1736,6 +1751,143 @@ static void otx2_reset_task(struct work_struct > > *work) > > netif_trans_update(pf->netdev); > > } > > > > +static i

Re: [PATCH v3 net-next 3/3] octeontx2-pf: Add support for PTP clock

2020-07-09 Thread Richard Cochran
On Thu, Jul 09, 2020 at 06:57:01PM +0530, sundeep.l...@gmail.com wrote: > @@ -1736,6 +1751,143 @@ static void otx2_reset_task(struct work_struct *work) > netif_trans_update(pf->netdev); > } > > +static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable) > +{ > + struct ms

[PATCH v3 net-next 3/3] octeontx2-pf: Add support for PTP clock

2020-07-09 Thread sundeep . lkml
From: Aleksey Makarov This patch adds PTP clock and uses it in Octeontx2 network device. PTP clock uses mailbox calls to access the hardware counter on the RVU side. Co-developed-by: Subbaraya Sundeep Signed-off-by: Subbaraya Sundeep Signed-off-by: Aleksey Makarov Signed-off-by: Sunil Goutham