As a result, the samurai class, especially Tokugawa's bannermen and "inner" families, sort of lost their purpose. There were no more wars to fight - not when peace lasted "as long as the waves roll" - and the strongest rebels they could expect were peasants who could not own swords.
Because they couldn't just revoke the lands Iyeyasu had distributed (without very good reason), and to give the samurai something to do, the Edo government expanded constantly, creating dozens of superfluous or sinecure bureaucratic roles, so that the second and third sons of samurai families wouldn't just sit around at home. I believe this pattern was repeated across the various daimyo han at each castle town. Further, the samurai household themselves created redundant job openings just to get more peasants out of unemployment. This was how every samurai ended up with six porters. Even as certain samurai families sunk into abject poverty in the 1800s, as the shogunate neared its end, this policy continued: your grandfather had increased the number of household retainers from five to six, to give someone's fourth son a job; and it had become hereditary, and now that fourth son's grandson was your sixth retainer, and you couldn't destroy the position even if you could barely afford to pay him.
When I hear politicians talking about "creating jobs", I think of the shogunate.