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";
                        };
                };
        };
};
This commit is contained in:
Sebastian Huber
2017-07-13 08:31:46 +02:00
parent e818128789
commit de5791b345
9 changed files with 124 additions and 0 deletions

View File

@@ -918,6 +918,13 @@ u16 qman_affine_channel(int cpu);
* @cpu: the cpu whose affine portal is the subject of the query
*/
struct qman_portal *qman_get_affine_portal(int cpu);
#ifdef __rtems__
struct qman_portal *qman_get_dedicated_portal(int cpu);
int qman_portal_get_channel(const struct qman_portal *portal);
int qman_portal_get_irq(const struct qman_portal *portal);
#endif /* __rtems__ */
/**
* qman_p_poll_dqrr - process DQRR (fast-path) entries