/* Get peak rate cell size of TBF qdisc.  */
int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *qdisc)
/* Get peak rate cell size of TBF qdisc.  */
int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *qdisc)
{
	struct rtnl_tbf *tbf;
	tbf = tbf_qdisc(qdisc);
	if (tbf && (tbf->qt_mask & TBF_ATTR_PEAKRATE))
		return (1 << tbf->qt_peakrate.rs_cell_log);
	else
		return -1;
}