Re: [PATCH v2 net-next 08/12] net: aquantia: add support for ptp ioctls

2019-10-15 Thread Igor Russkikh
>> + >> +switch (config->rx_filter) { >> +case HWTSTAMP_FILTER_PTP_V2_L4_EVENT: >> +case HWTSTAMP_FILTER_PTP_V2_L4_SYNC: >> +case HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ: >> +case HWTSTAMP_FILTER_PTP_V2_L2_EVENT: >> +case HWTSTAMP_FILTER_PTP_V2_L2_SYNC: >> +case HWTSTAMP_FI

Re: [PATCH v2 net-next 08/12] net: aquantia: add support for ptp ioctls

2019-10-14 Thread Andrew Lunn
> +static int aq_ndev_config_hwtstamp(struct aq_nic_s *aq_nic, > +struct hwtstamp_config *config) > +{ > + if (config->flags) > + return -EINVAL; > + > + switch (config->tx_type) { > + case HWTSTAMP_TX_OFF: > + case HWTSTAMP_TX_ON: > +

[PATCH v2 net-next 08/12] net: aquantia: add support for ptp ioctls

2019-10-08 Thread Igor Russkikh
From: Egor Pomozov Here we add support for PTP specific IOCTLs of HW timestamp get/set. These will use filters to configure flows onto the required queue ids. Co-developed-by: Sergey Samoilenko Signed-off-by: Sergey Samoilenko Signed-off-by: Egor Pomozov Signed-off-by: Igor Russkikh --- ..