Re: [PATCH v2 net-next 06/12] net: aquantia: implement data PTP datapath

2019-10-15 Thread Igor Russkikh
>> +static inline int aq_ptp_tm_offset_ingress_get(struct aq_ptp_s *aq_ptp) >> +{ >> +return atomic_read(&aq_ptp->offset_ingress); >> +} > > inline should not be used in C files. Let the compiler decide. Ok >> +atomic_set(&aq_ptp->offset_egress, egress); >> +atomic_set(&aq_ptp->offs

Re: [PATCH v2 net-next 06/12] net: aquantia: implement data PTP datapath

2019-10-14 Thread Andrew Lunn
> --- a/drivers/net/ethernet/aquantia/atlantic/aq_ptp.c > +++ b/drivers/net/ethernet/aquantia/atlantic/aq_ptp.c > @@ -8,12 +8,24 @@ > */ > > +static inline int aq_ptp_tm_offset_egress_get(struct aq_ptp_s *aq_ptp) > +{ > + return atomic_read(&aq_ptp->offset_egress); > +} > + > +static inline

[PATCH v2 net-next 06/12] net: aquantia: implement data PTP datapath

2019-10-08 Thread Igor Russkikh
From: Egor Pomozov Here we do alloc/free IRQs for PTP rings. We also implement processing of PTP packets on TX and RX sides. Signed-off-by: Egor Pomozov Co-developed-by: Sergey Samoilenko Signed-off-by: Sergey Samoilenko Co-developed-by: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed