dpaa_eth: add NETIF_F_RXHASH
Set the skb hash when then FMan Keygen hash result is available. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
bcf0994b23
commit
056057e288
@@ -1720,6 +1720,17 @@ u32 fman_port_get_qman_channel_id(struct fman_port *port)
|
||||
}
|
||||
EXPORT_SYMBOL(fman_port_get_qman_channel_id);
|
||||
|
||||
int fman_port_get_hash_result_offset(struct fman_port *port, u32 *offset)
|
||||
{
|
||||
if (port->buffer_offsets.hash_result_offset == ILLEGAL_BASE)
|
||||
return -EINVAL;
|
||||
|
||||
*offset = port->buffer_offsets.hash_result_offset;
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(fman_port_get_hash_result_offset);
|
||||
|
||||
static int fman_port_probe(struct platform_device *of_dev)
|
||||
{
|
||||
struct fman_port *port;
|
||||
|
@@ -151,6 +151,8 @@ int fman_port_enable(struct fman_port *port);
|
||||
|
||||
u32 fman_port_get_qman_channel_id(struct fman_port *port);
|
||||
|
||||
int fman_port_get_hash_result_offset(struct fman_port *port, u32 *offset);
|
||||
|
||||
struct fman_port *fman_port_bind(struct device *dev);
|
||||
|
||||
#endif /* __FMAN_PORT_H */
|
||||
|
Reference in New Issue
Block a user