On Sat, Oct 06, 2018 at 03:32:11PM +0300, Kalle Valo wrote:
> Tony Chuang <[email protected]> writes:
> 
> >> > +        pkt_info->bmc = bmc;
> >> > +        pkt_info->sec_type = sec_type;
> >> > +        pkt_info->tx_pkt_size = skb->len;
> >> > +        pkt_info->offset = chip->tx_pkt_desc_sz;
> >> > +        pkt_info->qsel = skb->priority;
> >> 
> >> Shouldn't be qsel somehow mapped from skb->priority ?
> >
> > Firmware handles it.
> 
> What if meaning of skb->priority changes in the future? I don't think
> it's safe to provide kernel internal values to firmware, you should do
> some kind of mapping in the driver.

We already have some functions that do mapping:

rtw_hw_queue_mapping(struct sk_buff *skb)

and

rtw_pci_get_tx_qsel(struct sk_buff *skb, u8 queue)

Preasumly they should be used here as well.

Thanks
Stanislaw

Reply via email to