Ignore:
Timestamp:
Jul 13, 2017, 6:31:46 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, 5-freebsd-12, 6-freebsd-12, master
Children:
24866e6
Parents:
e818128
git-author:
Sebastian Huber <sebastian.huber@…> (07/13/17 06:31:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:07)
Message:

dpaa: Add "libbsd,dedicated-portal" to QMan portals

By default, the network interfaces use a pool channel, see
dpaa_get_channel() in dpaa_eth_priv_probe(). To enable a dedicated QMan
software portal, use libbsd,dedicated-portal = "enabled";. This option
is useful for special purpose 10Gbit/s Ethernet processing.

/ {

soc: soc@ffe000000 {

fman0: fman@400000 {

enet7: ethernet@f2000 {

libbsd,dedicated-portal = "enabled";

};

};

};

};

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linux/drivers/net/ethernet/freescale/fman/mac.c

    re818128 rde5791b  
    749749static int mac_probe(struct platform_device *_of_dev)
    750750#else /* __rtems__ */
     751static bool
     752use_dedicated_portal(const struct device_node *mac_node)
     753{
     754        const char *dp;
     755        int len;
     756
     757        dp = of_get_property(mac_node, "libbsd,dedicated-portal", &len);
     758        return (len > 0 && strcmp(dp, "enabled") == 0);
     759}
     760
    751761static int mac_probe(device_t _dev, struct platform_device *_of_dev, struct fman *fman)
    752762#endif /* __rtems__ */
     
    10971107                 mac_dev->addr[3], mac_dev->addr[4], mac_dev->addr[5]);
    10981108
     1109#ifdef __rtems__
     1110        mac_dev->use_dedicated_portal = use_dedicated_portal(mac_node);
     1111#endif /* __rtems__ */
    10991112        priv->eth_dev = dpaa_eth_add_device(fman_id, mac_dev, mac_node);
    11001113        if (IS_ERR(priv->eth_dev)) {
Note: See TracChangeset for help on using the changeset viewer.